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
1 changed files with 4 additions and 1 deletions

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