Set outbox icon

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

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