Navigate to unified messages

This commit is contained in:
M66B
2022-11-06 21:32:40 +01:00
parent dc47faf66e
commit 7461994310
4 changed files with 19 additions and 20 deletions

View File

@@ -159,14 +159,11 @@ public class AdapterNavUnified extends RecyclerView.Adapter<AdapterNavUnified.Vi
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
if (EntityFolder.OUTBOX.equals(folder.type))
lbm.sendBroadcast(new Intent(ActivityView.ACTION_VIEW_OUTBOX));
if (folder.type == null) {
Intent view = new Intent(context, ActivityView.class);
view.setAction("unified");
context.startActivity(view);
} else if (folder.folders > 1)
else if (folder.folders > 1 || folder.type == null)
lbm.sendBroadcast(
new Intent(ActivityView.ACTION_VIEW_MESSAGES)
.putExtra("type", folder.type));
.putExtra("type", folder.type)
.putExtra("unified", folder.type == null));
else {
Bundle args = new Bundle();
args.putString("type", folder.type);