From cde3320029335ca3190bcc6a18a61fa3b92c201a Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 18 Oct 2018 11:41:32 +0000 Subject: [PATCH] Fixed back navigation --- app/src/main/java/eu/faircode/email/ActivityView.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityView.java b/app/src/main/java/eu/faircode/email/ActivityView.java index 22c151de..a172472d 100644 --- a/app/src/main/java/eu/faircode/email/ActivityView.java +++ b/app/src/main/java/eu/faircode/email/ActivityView.java @@ -304,6 +304,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB setIntent(intent); intent.putExtra("thread", action.split(":", 2)[1]); + getSupportFragmentManager().popBackStack("unified", 0); onViewThread(intent); } } @@ -766,8 +767,6 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB } private void onViewThread(Intent intent) { - getFragmentManager().popBackStack("thread", FragmentManager.POP_BACK_STACK_INCLUSIVE); - Bundle args = new Bundle(); args.putLong("account", intent.getLongExtra("account", -1)); args.putString("thread", intent.getStringExtra("thread"));