diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2013-01-19 19:57:11 +0100 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2013-01-19 19:57:11 +0100 |
commit | ecfdda63397983d9b27ea45e60e9fd04fc15bce4 (patch) | |
tree | 3d4302b436f8f1c390149842510e2c0095b9b478 /main/src/cgeo/geocaching/activity | |
parent | c24ade2dea3a097f7c7a9c5bf330e11a47a088bc (diff) | |
download | cgeo-ecfdda63397983d9b27ea45e60e9fd04fc15bce4.zip cgeo-ecfdda63397983d9b27ea45e60e9fd04fc15bce4.tar.gz cgeo-ecfdda63397983d9b27ea45e60e9fd04fc15bce4.tar.bz2 |
Refactoring: remove unnecessary unboxing
Diffstat (limited to 'main/src/cgeo/geocaching/activity')
-rw-r--r-- | main/src/cgeo/geocaching/activity/AbstractViewPagerActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/activity/AbstractViewPagerActivity.java b/main/src/cgeo/geocaching/activity/AbstractViewPagerActivity.java index a25c1bb..366a59d 100644 --- a/main/src/cgeo/geocaching/activity/AbstractViewPagerActivity.java +++ b/main/src/cgeo/geocaching/activity/AbstractViewPagerActivity.java @@ -237,7 +237,7 @@ public abstract class AbstractViewPagerActivity<Page extends Enum<Page>> extends pageOrder.addAll(pagesAndIndex.getLeft()); // switch to details page, if we're out of bounds - final int defaultPage = pagesAndIndex.getRight().intValue(); + final int defaultPage = pagesAndIndex.getRight(); if (getCurrentItem() < 0 || getCurrentItem() >= viewPagerAdapter.getCount()) { viewPager.setCurrentItem(defaultPage, false); } |