diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2015-03-17 08:37:59 +0100 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2015-03-17 08:41:06 +0100 |
commit | b2ffc2581c6630e313c4e623d0a40c8846e1e975 (patch) | |
tree | 6859e456fdb42e6468558883761c1de40b458c80 /main/src/cgeo/geocaching/ui/AbstractCachingListViewPageViewCreator.java | |
parent | 9119639276a00ef17d3ffa1a5fad0c37c1bebd78 (diff) | |
download | cgeo-b2ffc2581c6630e313c4e623d0a40c8846e1e975.zip cgeo-b2ffc2581c6630e313c4e623d0a40c8846e1e975.tar.gz cgeo-b2ffc2581c6630e313c4e623d0a40c8846e1e975.tar.bz2 |
Add missing final qualifiers in main module
Diffstat (limited to 'main/src/cgeo/geocaching/ui/AbstractCachingListViewPageViewCreator.java')
-rw-r--r-- | main/src/cgeo/geocaching/ui/AbstractCachingListViewPageViewCreator.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/main/src/cgeo/geocaching/ui/AbstractCachingListViewPageViewCreator.java b/main/src/cgeo/geocaching/ui/AbstractCachingListViewPageViewCreator.java index 06fa1fa..40d077e 100644 --- a/main/src/cgeo/geocaching/ui/AbstractCachingListViewPageViewCreator.java +++ b/main/src/cgeo/geocaching/ui/AbstractCachingListViewPageViewCreator.java @@ -30,10 +30,10 @@ public abstract class AbstractCachingListViewPageViewCreator extends AbstractCac if (view == null) { return null; } - int position = view.getFirstVisiblePosition(); - View child = view.getChildAt(0); - int positionFromTop = (child == null) ? 0 : child.getTop(); - Bundle state = new Bundle(); + final int position = view.getFirstVisiblePosition(); + final View child = view.getChildAt(0); + final int positionFromTop = (child == null) ? 0 : child.getTop(); + final Bundle state = new Bundle(); state.putInt(STATE_POSITION, position); state.putInt(STATE_POSITION_FROM_TOP, positionFromTop); return state; @@ -44,12 +44,12 @@ public abstract class AbstractCachingListViewPageViewCreator extends AbstractCac * */ @Override - public void setViewState(@NonNull Bundle state) { + public void setViewState(@NonNull final Bundle state) { if (view == null) { return; } - int logViewPosition = state.getInt(STATE_POSITION); - int logViewPositionFromTop = state.getInt(STATE_POSITION_FROM_TOP); + final int logViewPosition = state.getInt(STATE_POSITION); + final int logViewPositionFromTop = state.getInt(STATE_POSITION_FROM_TOP); view.setSelectionFromTop(logViewPosition, logViewPositionFromTop); } |