Merge pull request #584 from sk22/fix-restored-tab-selection
Fix wrong tab being selected on restore
This commit is contained in:
commit
285eb25706
|
@ -145,6 +145,7 @@ public class HomeFragment extends AppKitFragment implements OnBackPressedListene
|
|||
notificationsFragment=(NotificationsFragment) getChildFragmentManager().getFragment(savedInstanceState, "notificationsFragment");
|
||||
profileFragment=(ProfileFragment) getChildFragmentManager().getFragment(savedInstanceState, "profileFragment");
|
||||
currentTab=savedInstanceState.getInt("selectedTab");
|
||||
tabBar.selectTab(currentTab);
|
||||
Fragment current=fragmentForTab(currentTab);
|
||||
getChildFragmentManager().beginTransaction()
|
||||
.hide(homeTimelineFragment)
|
||||
|
|
Loading…
Reference in New Issue