Open relevant folder/messages from unread count widget

This commit is contained in:
M66B
2020-03-28 10:20:52 +01:00
parent 5e5213f5b8
commit 767c8e8fe2
3 changed files with 41 additions and 12 deletions

View File

@@ -882,6 +882,14 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
startService(clear);
}
} else if (action.startsWith("folders")) {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
getSupportFragmentManager().popBackStack("unified", 0);
long account = Long.parseLong(action.split(":", 2)[1]);
if (account > 0)
onMenuFolders(account);
} else if (action.startsWith("folder")) {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
getSupportFragmentManager().popBackStack("unified", 0);
@@ -909,10 +917,13 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
Helper.viewFAQ(this, "alert".equals(action) ? 23 : 22);
} else if ("outbox".equals(action))
} else if ("outbox".equals(action)) {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
getSupportFragmentManager().popBackStack("unified", 0);
onMenuOutbox();
else if (action.startsWith("thread")) {
} else if (action.startsWith("thread")) {
intent.putExtra("thread", action.split(":", 2)[1]);
onViewThread(intent);