1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 17:57:16 +00:00

Keep just one message list on back stack

This commit is contained in:
M66B 2018-12-05 17:05:11 +01:00
parent 8d7916af04
commit 109beb3aae

View file

@ -1120,6 +1120,9 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
};
private void onViewMessages(Intent intent) {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
getSupportFragmentManager().popBackStack("messages", FragmentManager.POP_BACK_STACK_INCLUSIVE);
Bundle args = new Bundle();
args.putLong("account", intent.getLongExtra("account", -1));
args.putLong("folder", intent.getLongExtra("folder", -1));