fix(wrong-tab-selected-on-back): set the correct tab in after going back from a notification
Fixes #388
This commit is contained in:
parent
0bdb23e462
commit
66c9e0d908
|
@ -161,6 +161,8 @@ public class HomeFragment extends AppKitFragment implements OnBackPressedListene
|
|||
notificationsBadge=tabBar.findViewById(R.id.notifications_badge);
|
||||
notificationsBadge.setVisibility(View.GONE);
|
||||
|
||||
tabBar.selectTab(currentTab);
|
||||
|
||||
if(savedInstanceState==null){
|
||||
getChildFragmentManager().beginTransaction()
|
||||
.add(me.grishka.appkit.R.id.fragment_wrap, homeTabFragment)
|
||||
|
@ -182,7 +184,6 @@ public class HomeFragment extends AppKitFragment implements OnBackPressedListene
|
|||
});
|
||||
}
|
||||
}
|
||||
tabBar.selectTab(currentTab);
|
||||
|
||||
return content;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue