mirror of https://github.com/M66B/FairEmail.git
Debug: folders
This commit is contained in:
parent
114e1c24f1
commit
95d1eec73c
|
@ -109,6 +109,7 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
|
||||||
private int colorUnread;
|
private int colorUnread;
|
||||||
private int colorControlNormal;
|
private int colorControlNormal;
|
||||||
private int colorSeparator;
|
private int colorSeparator;
|
||||||
|
private boolean debug;
|
||||||
|
|
||||||
private String search = null;
|
private String search = null;
|
||||||
private List<Long> disabledIds = new ArrayList<>();
|
private List<Long> disabledIds = new ArrayList<>();
|
||||||
|
@ -416,7 +417,7 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
|
||||||
? textColorPrimary : textColorSecondary));
|
? textColorPrimary : textColorSecondary));
|
||||||
ibSync.setEnabled(folder.last_sync != null);
|
ibSync.setEnabled(folder.last_sync != null);
|
||||||
|
|
||||||
tvKeywords.setText(BuildConfig.DEBUG ?
|
tvKeywords.setText(debug ?
|
||||||
(folder.separator == null ? "" : folder.separator + " ") +
|
(folder.separator == null ? "" : folder.separator + " ") +
|
||||||
(folder.namespace == null ? "" : folder.namespace + " ") +
|
(folder.namespace == null ? "" : folder.namespace + " ") +
|
||||||
(folder.flags == null ? null : TextUtils.join(" ", folder.flags) + " ") +
|
(folder.flags == null ? null : TextUtils.join(" ", folder.flags) + " ") +
|
||||||
|
@ -1367,6 +1368,7 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
|
||||||
this.colorUnread = (highlight_unread ? colorHighlight : Helper.resolveColor(context, R.attr.colorUnread));
|
this.colorUnread = (highlight_unread ? colorHighlight : Helper.resolveColor(context, R.attr.colorUnread));
|
||||||
this.colorControlNormal = Helper.resolveColor(context, R.attr.colorControlNormal);
|
this.colorControlNormal = Helper.resolveColor(context, R.attr.colorControlNormal);
|
||||||
this.colorSeparator = Helper.resolveColor(context, R.attr.colorSeparator);
|
this.colorSeparator = Helper.resolveColor(context, R.attr.colorSeparator);
|
||||||
|
this.debug = prefs.getBoolean("debug", false);
|
||||||
|
|
||||||
setHasStableIds(true);
|
setHasStableIds(true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue