Set outbox icon

pull/156/head
M66B 6 years ago
parent 6fdc1cae50
commit ed5ee4ff04

@ -73,13 +73,18 @@ public class AdapterNavFolder extends RecyclerView.Adapter<AdapterNavFolder.View
} }
private void bindTo(TupleFolderNav folder) { private void bindTo(TupleFolderNav folder) {
ivItem.setImageResource("connected".equals(folder.state) if (EntityFolder.OUTBOX.equals(folder.type)) {
? R.drawable.baseline_folder_24 ivItem.setImageResource(R.drawable.baseline_send_24);
: R.drawable.baseline_folder_open_24);
if (folder.color == null)
ivItem.clearColorFilter(); ivItem.clearColorFilter();
else } else {
ivItem.setColorFilter(folder.color); 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); int count = (EntityFolder.OUTBOX.equals(folder.type) ? folder.operations : folder.unseen);

Loading…
Cancel
Save