mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 07:06:18 +02:00
Show backoff state
This commit is contained in:
@@ -89,9 +89,14 @@ public class AdapterNavAccount extends RecyclerView.Adapter<AdapterNavAccount.Vi
|
||||
}
|
||||
|
||||
private void bindTo(TupleAccountEx account) {
|
||||
ivItem.setImageResource("connected".equals(account.state)
|
||||
? account.primary ? R.drawable.twotone_folder_special_24 : R.drawable.twotone_folder_done_24
|
||||
: R.drawable.twotone_folder_24);
|
||||
if ("connected".equals(account.state))
|
||||
ivItem.setImageResource(account.primary
|
||||
? R.drawable.twotone_folder_special_24
|
||||
: R.drawable.twotone_folder_done_24);
|
||||
else
|
||||
ivItem.setImageResource(account.backoff_until == null
|
||||
? R.drawable.twotone_folder_24
|
||||
: R.drawable.twotone_update_24);
|
||||
|
||||
if (account.color == null)
|
||||
ivItem.clearColorFilter();
|
||||
|
||||
Reference in New Issue
Block a user