Small back nav fix

This commit is contained in:
M66B 2022-07-12 11:22:01 +02:00
parent 429837e87f
commit 442efbd7ef
1 changed files with 5 additions and 0 deletions

View File

@ -439,6 +439,11 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
if (drawerLayout.isDrawerOpen(drawerContainer))
drawerLayout.closeDrawer(drawerContainer);
else {
if (getSupportFragmentManager().getBackStackEntryCount() > 1) {
performBack();
return;
}
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
boolean setup_reminder = prefs.getBoolean("setup_reminder", true);