Skip to content

Commit

Permalink
fix(wrong-tab-selected-on-back): set the correct tab in after going b…
Browse files Browse the repository at this point in the history
…ack from a notification

Fixes #388
  • Loading branch information
LucasGGamerM committed Jun 16, 2024
1 parent 0bdb23e commit 66c9e0d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,
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)
Expand All @@ -182,7 +184,6 @@ public boolean onPreDraw(){
});
}
}
tabBar.selectTab(currentTab);

return content;
}
Expand Down

0 comments on commit 66c9e0d

Please sign in to comment.