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
1 changed files with 3 additions and 0 deletions

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));