fix(wrong-tab-selected-on-back): set the correct tab in after going back from a notification

Fixes #388
This commit is contained in:
LucasGGamerM 2024-06-16 10:37:40 -03:00
parent 0bdb23e462
commit 66c9e0d908
1 changed files with 2 additions and 1 deletions

View File

@ -161,6 +161,8 @@ public class HomeFragment extends AppKitFragment implements OnBackPressedListene
notificationsBadge=tabBar.findViewById(R.id.notifications_badge); notificationsBadge=tabBar.findViewById(R.id.notifications_badge);
notificationsBadge.setVisibility(View.GONE); notificationsBadge.setVisibility(View.GONE);
tabBar.selectTab(currentTab);
if(savedInstanceState==null){ if(savedInstanceState==null){
getChildFragmentManager().beginTransaction() getChildFragmentManager().beginTransaction()
.add(me.grishka.appkit.R.id.fragment_wrap, homeTabFragment) .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; return content;
} }