Fixed unified/primary folders navigation

This commit is contained in:
M66B 2024-01-07 20:29:37 +01:00
parent 3c000ffd1a
commit 8ef2dfe77b
1 changed files with 1 additions and 7 deletions

View File

@ -774,8 +774,6 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
private void init() {
Bundle args = new Bundle();
long account = getIntent().getLongExtra("account", -1);
FragmentBase fragment;
switch (startup) {
case "accounts":
@ -784,15 +782,11 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
break;
case "folders":
fragment = new FragmentFolders();
args.putLong("account", account);
args.putBoolean("unified", true);
break;
case "primary":
fragment = new FragmentFolders();
if (account < 0)
args.putBoolean("primary", true);
else
args.putLong("account", account);
args.putBoolean("primary", true);
break;
default:
fragment = new FragmentMessages();