Disable downloads and episodes view tab position restore animation

This commit is contained in:
Ebrahim Byagowi 2020-04-11 02:20:12 +04:30
parent 1b9937c2be
commit c88336f17f
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}