Reset intent action always

pull/198/head
M66B 4 years ago
parent 8a977f4297
commit b001f1ac7f

@ -1089,7 +1089,6 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
Intent clear = new Intent(this, ServiceUI.class) Intent clear = new Intent(this, ServiceUI.class)
.setAction(action.replace("unified", "clear")); .setAction(action.replace("unified", "clear"));
startService(clear); startService(clear);
intent.setAction("unified");
} }
} else if (action.startsWith("folders")) { } else if (action.startsWith("folders")) {
@ -1115,7 +1114,6 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
Intent clear = new Intent(this, ServiceUI.class) Intent clear = new Intent(this, ServiceUI.class)
.setAction("clear:" + parts[2]); .setAction("clear:" + parts[2]);
startService(clear); startService(clear);
intent.setAction("folder:" + folder);
} }
} else if ("why".equals(action)) { } else if ("why".equals(action)) {
@ -1129,16 +1127,12 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
Helper.viewFAQ(this, 2); Helper.viewFAQ(this, 2);
} }
intent.setAction(null);
} else if ("alert".equals(action) || "error".equals(action)) { } else if ("alert".equals(action) || "error".equals(action)) {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
getSupportFragmentManager().popBackStack("unified", 0); getSupportFragmentManager().popBackStack("unified", 0);
Helper.viewFAQ(this, "alert".equals(action) ? 23 : 22); Helper.viewFAQ(this, "alert".equals(action) ? 23 : 22);
intent.setAction(null);
} else if ("outbox".equals(action)) { } else if ("outbox".equals(action)) {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
getSupportFragmentManager().popBackStack("unified", 0); getSupportFragmentManager().popBackStack("unified", 0);
@ -1172,6 +1166,8 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
} }
onViewThread(intent); onViewThread(intent);
} }
intent.setAction(null);
} }
if (intent.hasExtra(Intent.EXTRA_PROCESS_TEXT)) { if (intent.hasExtra(Intent.EXTRA_PROCESS_TEXT)) {

Loading…
Cancel
Save