mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 02:37:16 +00:00
Show account connected state in navigation drawer
This commit is contained in:
parent
6be364c604
commit
cfc498dcd9
1 changed files with 4 additions and 1 deletions
|
@ -222,7 +222,10 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
});
|
||||
|
||||
for (EntityAccount account : accounts)
|
||||
drawerArray.add(new DrawerItem(R.layout.item_drawer, -1, R.drawable.baseline_folder_24, account.color, account.name, account.id));
|
||||
drawerArray.add(new DrawerItem(
|
||||
R.layout.item_drawer, -1,
|
||||
"connected".equals(account.state) ? R.drawable.baseline_folder_24 : R.drawable.baseline_folder_open_24,
|
||||
account.color, account.name, account.id));
|
||||
|
||||
drawerArray.add(new DrawerItem(R.layout.item_drawer_separator));
|
||||
|
||||
|
|
Loading…
Reference in a new issue