From cb17fcaba4ea43747bc523de664ab82e77b2a1ab Mon Sep 17 00:00:00 2001 From: Irfan Omur Date: Thu, 16 May 2024 16:18:13 +0300 Subject: [PATCH] Fix a crash that occurs when navigating back from the people screen --- .../wordpress/android/ui/people/PeopleManagementActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WordPress/src/main/java/org/wordpress/android/ui/people/PeopleManagementActivity.java b/WordPress/src/main/java/org/wordpress/android/ui/people/PeopleManagementActivity.java index 0add5ecb5c0b..ca3a29e92275 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/people/PeopleManagementActivity.java +++ b/WordPress/src/main/java/org/wordpress/android/ui/people/PeopleManagementActivity.java @@ -604,7 +604,7 @@ private void refreshDetailFragment() { private boolean navigateBackToPeopleListFragment() { FragmentManager fragmentManager = getSupportFragmentManager(); - if (fragmentManager.getBackStackEntryCount() > 0) { + if (!fragmentManager.isStateSaved() && fragmentManager.getBackStackEntryCount() > 0) { fragmentManager.popBackStack(); ActionBar actionBar = getSupportActionBar();