diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeFragment.java index 8e5facca8a..7c91307f95 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeFragment.java @@ -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) @@ -182,7 +184,6 @@ public boolean onPreDraw(){ }); } } - tabBar.selectTab(currentTab); return content; }