Browse Source

Fixed back navigation

main
M66B 6 years ago
parent
commit
cde3320029
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      app/src/main/java/eu/faircode/email/ActivityView.java

+ 1
- 2
app/src/main/java/eu/faircode/email/ActivityView.java View File

@ -304,6 +304,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
setIntent(intent); setIntent(intent);
intent.putExtra("thread", action.split(":", 2)[1]); intent.putExtra("thread", action.split(":", 2)[1]);
getSupportFragmentManager().popBackStack("unified", 0);
onViewThread(intent); onViewThread(intent);
} }
} }
@ -766,8 +767,6 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
} }
private void onViewThread(Intent intent) { private void onViewThread(Intent intent) {
getFragmentManager().popBackStack("thread", FragmentManager.POP_BACK_STACK_INCLUSIVE);
Bundle args = new Bundle(); Bundle args = new Bundle();
args.putLong("account", intent.getLongExtra("account", -1)); args.putLong("account", intent.getLongExtra("account", -1));
args.putString("thread", intent.getStringExtra("thread")); args.putString("thread", intent.getStringExtra("thread"));


Loading…
Cancel
Save