Convert variable to local

This commit is contained in:
Alex Sytnyk 2018-04-16 13:18:38 +03:00
parent 682450dc7f
commit 3748887714

View file

@ -40,8 +40,6 @@ public class WikivoyageExploreDialogFragment extends WikivoyageBaseDialogFragmen
private ExploreTabFragment exploreTabFragment;
private SavedArticlesTabFragment savedArticlesTabFragment;
private ViewPagerAdapter adapter;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
@ -103,7 +101,7 @@ public class WikivoyageExploreDialogFragment extends WikivoyageBaseDialogFragmen
}
});
adapter = new ViewPagerAdapter(childFm);
ViewPagerAdapter adapter = new ViewPagerAdapter(childFm);
final LockableViewPager viewPager = (LockableViewPager) mainView.findViewById(R.id.view_pager);
viewPager.setOffscreenPageLimit(2);
viewPager.setSwipeLocked(true);