From 85c3d9f65f9a46b1285f4601c7677c82973932ef Mon Sep 17 00:00:00 2001 From: sk Date: Thu, 25 May 2023 19:51:45 +0200 Subject: [PATCH] fix wrong tab being selected on restore --- .../java/org/joinmastodon/android/fragments/HomeFragment.java | 1 + 1 file changed, 1 insertion(+) 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 5b8072c0..c2a357f5 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeFragment.java @@ -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)