mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 14:41:08 +00:00
Hide folder property icons in compact mode
This commit is contained in:
parent
7de6f329b8
commit
fe378388ad
1 changed files with 12 additions and 4 deletions
|
@ -292,10 +292,18 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
|
|||
? View.VISIBLE : View.INVISIBLE);
|
||||
|
||||
if (listener == null && folder.selectable) {
|
||||
ivUnified.setVisibility((account > 0 || primary) && folder.unified ? View.VISIBLE : View.GONE);
|
||||
ivSubscribed.setVisibility(subscriptions && folder.subscribed != null && folder.subscribed ? View.VISIBLE : View.GONE);
|
||||
ivRule.setVisibility(folder.rules > 0 ? View.VISIBLE : View.GONE);
|
||||
ivNotify.setVisibility(folder.notify ? View.VISIBLE : View.GONE);
|
||||
ivUnified.setVisibility(
|
||||
(account > 0 || primary) && folder.unified && !show_compact
|
||||
? View.VISIBLE : View.GONE);
|
||||
ivSubscribed.setVisibility(
|
||||
subscriptions && folder.subscribed != null && folder.subscribed && !show_compact
|
||||
? View.VISIBLE : View.GONE);
|
||||
ivRule.setVisibility(
|
||||
folder.rules > 0 && !show_compact
|
||||
? View.VISIBLE : View.GONE);
|
||||
ivNotify.setVisibility(
|
||||
folder.notify && !show_compact
|
||||
? View.VISIBLE : View.GONE);
|
||||
ivAutoAdd.setVisibility(BuildConfig.DEBUG &&
|
||||
EntityFolder.SENT.equals(folder.type) &&
|
||||
(folder.auto_add == null || folder.auto_add)
|
||||
|
|
Loading…
Reference in a new issue