mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-29 11:15:51 +00:00
Show syncing/downloading in navigation menu
This commit is contained in:
parent
384e93c47e
commit
85f4f5b958
1 changed files with 14 additions and 4 deletions
|
@ -75,12 +75,22 @@ 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);
|
||||
if ("syncing".equals(folder.sync_state))
|
||||
ivItem.setImageResource(R.drawable.baseline_compare_arrows_24);
|
||||
else
|
||||
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);
|
||||
if ("syncing".equals(folder.sync_state))
|
||||
ivItem.setImageResource(R.drawable.baseline_compare_arrows_24);
|
||||
else if ("downloading".equals(folder.sync_state))
|
||||
ivItem.setImageResource(R.drawable.baseline_cloud_download_24);
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue