mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Set outbox icon
This commit is contained in:
parent
6fdc1cae50
commit
ed5ee4ff04
1 changed files with 11 additions and 6 deletions
|
@ -73,13 +73,18 @@ public class AdapterNavFolder extends RecyclerView.Adapter<AdapterNavFolder.View
|
|||
}
|
||||
|
||||
private void bindTo(TupleFolderNav folder) {
|
||||
ivItem.setImageResource("connected".equals(folder.state)
|
||||
? R.drawable.baseline_folder_24
|
||||
: R.drawable.baseline_folder_open_24);
|
||||
if (folder.color == null)
|
||||
if (EntityFolder.OUTBOX.equals(folder.type)) {
|
||||
ivItem.setImageResource(R.drawable.baseline_send_24);
|
||||
ivItem.clearColorFilter();
|
||||
else
|
||||
ivItem.setColorFilter(folder.color);
|
||||
} else {
|
||||
ivItem.setImageResource("connected".equals(folder.state)
|
||||
? R.drawable.baseline_folder_24
|
||||
: R.drawable.baseline_folder_open_24);
|
||||
if (folder.color == null)
|
||||
ivItem.clearColorFilter();
|
||||
else
|
||||
ivItem.setColorFilter(folder.color);
|
||||
}
|
||||
|
||||
int count = (EntityFolder.OUTBOX.equals(folder.type) ? folder.operations : folder.unseen);
|
||||
|
||||
|
|
Loading…
Reference in a new issue