mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Simplification
This commit is contained in:
parent
d3aa0ea935
commit
a12bced984
1 changed files with 2 additions and 6 deletions
|
@ -90,7 +90,6 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
|
|||
private LayoutInflater inflater;
|
||||
|
||||
private boolean subscriptions;
|
||||
private boolean debug;
|
||||
|
||||
private int dp12;
|
||||
private float textSize;
|
||||
|
@ -344,10 +343,8 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
|
|||
folder.synchronize && folder.initialize != 0 && !EntityFolder.OUTBOX.equals(folder.type)
|
||||
? textColorPrimary : textColorSecondary));
|
||||
|
||||
tvKeywords.setText(debug ? TextUtils.join(" ", folder.keywords) : null);
|
||||
tvKeywords.setVisibility(
|
||||
show_flagged || (debug && folder.keywords.length > 0)
|
||||
? View.VISIBLE : View.GONE);
|
||||
tvKeywords.setText(BuildConfig.DEBUG ? TextUtils.join(" ", folder.keywords) : null);
|
||||
tvKeywords.setVisibility(show_flagged ? View.VISIBLE : View.GONE);
|
||||
|
||||
tvFlagged.setText(NF.format(folder.flagged));
|
||||
|
||||
|
@ -807,7 +804,6 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
|
|||
|
||||
this.subscriptions = prefs.getBoolean("subscriptions", false);
|
||||
this.subscribed_only = prefs.getBoolean("subscribed_only", false) && subscriptions;
|
||||
this.debug = prefs.getBoolean("debug", false);
|
||||
|
||||
this.dp12 = Helper.dp2pixels(context, 12);
|
||||
this.textSize = Helper.getTextSize(context, zoom);
|
||||
|
|
Loading…
Reference in a new issue