|
|
|
@ -73,6 +73,10 @@ public class AdapterNavFolder extends RecyclerView.Adapter<AdapterNavFolder.View
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
? R.drawable.baseline_folder_24
|
|
|
|
|
: R.drawable.baseline_folder_open_24);
|
|
|
|
@ -80,6 +84,7 @@ public class AdapterNavFolder extends RecyclerView.Adapter<AdapterNavFolder.View
|
|
|
|
|
ivItem.clearColorFilter();
|
|
|
|
|
else
|
|
|
|
|
ivItem.setColorFilter(folder.color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int count = (EntityFolder.OUTBOX.equals(folder.type) ? folder.operations : folder.unseen);
|
|
|
|
|
|
|
|
|
|