Conditionally open unified inbox from notification

pull/214/head
M66B 11 months ago
parent 892ed3a0ad
commit 3474561692

@ -2019,6 +2019,9 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
boolean notify_open_folder = prefs.getBoolean("notify_open_folder", false); boolean notify_open_folder = prefs.getBoolean("notify_open_folder", false);
if (account > 0 && folder > 0 && !TextUtils.isEmpty(type) && notify_open_folder) { if (account > 0 && folder > 0 && !TextUtils.isEmpty(type) && notify_open_folder) {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) { if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) {
if (group >= 0)
getSupportFragmentManager().popBackStack("unified", 0);
else {
getSupportFragmentManager().popBackStack("messages", FragmentManager.POP_BACK_STACK_INCLUSIVE); getSupportFragmentManager().popBackStack("messages", FragmentManager.POP_BACK_STACK_INCLUSIVE);
Bundle args = new Bundle(); Bundle args = new Bundle();
@ -2034,6 +2037,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
fragmentTransaction.commit(); fragmentTransaction.commit();
} }
} }
}
onViewThread(intent); onViewThread(intent);
} else if (action.startsWith("widget")) { } else if (action.startsWith("widget")) {

Loading…
Cancel
Save