Optionaly go back to folder list

This commit is contained in:
M66B
2022-02-19 22:56:19 +01:00
parent 3032b7fe4b
commit 5cabf7ed85
4 changed files with 35 additions and 1 deletions

View File

@@ -1829,6 +1829,17 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
getSupportFragmentManager().popBackStack("messages", FragmentManager.POP_BACK_STACK_INCLUSIVE);
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
boolean foldernav = prefs.getBoolean("foldernav", false);
if (foldernav) {
long account = intent.getLongExtra("account", -1);
if (account > 0) {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
getSupportFragmentManager().popBackStack("unified", 0);
onMenuFolders(account);
}
}
Bundle args = new Bundle();
args.putString("type", intent.getStringExtra("type"));
args.putLong("account", intent.getLongExtra("account", -1));