Group non unified folder notifications

This commit is contained in:
M66B
2020-06-15 12:34:25 +02:00
parent 097cd0b68b
commit 42f02ba743
5 changed files with 59 additions and 21 deletions

View File

@@ -942,12 +942,19 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
getSupportFragmentManager().popBackStack("unified", 0);
long folder = Long.parseLong(action.split(":", 2)[1]);
String[] parts = action.split(":");
long folder = Long.parseLong(parts[1]);
if (folder > 0) {
intent.putExtra("folder", folder);
onViewMessages(intent);
}
if (parts.length > 2) {
Intent clear = new Intent(this, ServiceUI.class)
.setAction("clear:" + parts[2]);
startService(clear);
}
} else if ("why".equals(action)) {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
getSupportFragmentManager().popBackStack("unified", 0);