mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Open relevant folder/messages from unread count widget
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user