From e3520957ed24f061dfe6ee0da8c3e5c0eac1b427 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 5 Sep 2020 21:24:28 +0200 Subject: [PATCH] Fixed intent --- app/src/main/java/eu/faircode/email/ActivityView.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/ActivityView.java b/app/src/main/java/eu/faircode/email/ActivityView.java index d637cda56b..a3dc197c50 100644 --- a/app/src/main/java/eu/faircode/email/ActivityView.java +++ b/app/src/main/java/eu/faircode/email/ActivityView.java @@ -1039,6 +1039,11 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB } else if (action.equals("widget")) { long account = intent.getLongExtra("account", -1); long folder = intent.getLongExtra("folder", -1); + + intent.removeExtra("account"); + intent.removeExtra("folder"); + setIntent(intent); + if (account > 0 && folder > 0) { if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) { getSupportFragmentManager().popBackStack("messages", FragmentManager.POP_BACK_STACK_INCLUSIVE);