Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- protected void onStop() {
- super.onStop();
- System.out.println("You left on Tab " + tabLayout.getSelectedTabPosition());
- }
- @Override
- protected void onResume() {
- super.onResume();
- viewPager.setAdapter(sfpAdapter); //Refresh
- if(tabLayout != null){
- tabLayout.getTabAt(PUT OLD POSITION IN HERE).select();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement