mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 13:12:25 -05:00
Don't show account-level chips until unread count is known.
This commit is contained in:
parent
9c761419c9
commit
57acd3232e
@ -695,7 +695,19 @@ public class Accounts extends K9ListActivity implements OnItemClickListener, OnC
|
||||
}
|
||||
holder.chip.setBackgroundResource(K9.COLOR_CHIP_RES_IDS[account.getAccountNumber() % K9.COLOR_CHIP_RES_IDS.length]);
|
||||
|
||||
holder.chip.getBackground().setAlpha((unreadMessageCount == null || unreadMessageCount == 0) ? 127 : 255);
|
||||
if (unreadMessageCount == null)
|
||||
{
|
||||
holder.chip.getBackground().setAlpha(0);
|
||||
}
|
||||
else if (unreadMessageCount == 0)
|
||||
{
|
||||
holder.chip.getBackground().setAlpha(127);
|
||||
}
|
||||
else
|
||||
{
|
||||
holder.chip.getBackground().setAlpha(255);
|
||||
}
|
||||
|
||||
|
||||
return view;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user