|
|
|
@ -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);
|
|
|
|
|
|
|
|
|
|