1
0
Fork 0
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:
M66B 2018-11-10 09:01:18 +00:00
parent 6be364c604
commit cfc498dcd9

View file

@ -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));