mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 22:51:02 +00:00
Reset intent action always
This commit is contained in:
parent
8a977f4297
commit
b001f1ac7f
1 changed files with 2 additions and 6 deletions
|
@ -1089,7 +1089,6 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
Intent clear = new Intent(this, ServiceUI.class)
|
||||
.setAction(action.replace("unified", "clear"));
|
||||
startService(clear);
|
||||
intent.setAction("unified");
|
||||
}
|
||||
|
||||
} else if (action.startsWith("folders")) {
|
||||
|
@ -1115,7 +1114,6 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
Intent clear = new Intent(this, ServiceUI.class)
|
||||
.setAction("clear:" + parts[2]);
|
||||
startService(clear);
|
||||
intent.setAction("folder:" + folder);
|
||||
}
|
||||
|
||||
} else if ("why".equals(action)) {
|
||||
|
@ -1129,16 +1127,12 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
Helper.viewFAQ(this, 2);
|
||||
}
|
||||
|
||||
intent.setAction(null);
|
||||
|
||||
} else if ("alert".equals(action) || "error".equals(action)) {
|
||||
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||
getSupportFragmentManager().popBackStack("unified", 0);
|
||||
|
||||
Helper.viewFAQ(this, "alert".equals(action) ? 23 : 22);
|
||||
|
||||
intent.setAction(null);
|
||||
|
||||
} else if ("outbox".equals(action)) {
|
||||
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||
getSupportFragmentManager().popBackStack("unified", 0);
|
||||
|
@ -1172,6 +1166,8 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
}
|
||||
onViewThread(intent);
|
||||
}
|
||||
|
||||
intent.setAction(null);
|
||||
}
|
||||
|
||||
if (intent.hasExtra(Intent.EXTRA_PROCESS_TEXT)) {
|
||||
|
|
Loading…
Reference in a new issue