Disable downloads and episodes view tab position restore animation
This commit is contained in:
parent
1b9937c2be
commit
c88336f17f
|
@ -70,7 +70,7 @@ public class DownloadsFragment extends Fragment {
|
|||
// restore our last position
|
||||
SharedPreferences prefs = getActivity().getSharedPreferences(TAG, Context.MODE_PRIVATE);
|
||||
int lastPosition = prefs.getInt(PREF_LAST_TAB_POSITION, 0);
|
||||
viewPager.setCurrentItem(lastPosition);
|
||||
viewPager.setCurrentItem(lastPosition, false);
|
||||
|
||||
return root;
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@ public class EpisodesFragment extends Fragment {
|
|||
// restore our last position
|
||||
SharedPreferences prefs = getActivity().getSharedPreferences(TAG, Context.MODE_PRIVATE);
|
||||
int lastPosition = prefs.getInt(PREF_LAST_TAB_POSITION, 0);
|
||||
viewPager.setCurrentItem(lastPosition);
|
||||
viewPager.setCurrentItem(lastPosition, false);
|
||||
|
||||
return rootView;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue