Added settings to enable/disable color stripes, quick filter and quick scroll

This commit is contained in:
M66B
2019-12-30 11:44:09 +01:00
parent 7a02055253
commit 3f1c6a949a
10 changed files with 94 additions and 11 deletions

View File

@@ -196,6 +196,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
private boolean date;
private boolean threading;
private boolean avatars;
private boolean color_stripe;
private boolean name_email;
private boolean distinguish_contacts;
private Float font_size_sender;
@@ -792,6 +793,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
vwColor.setTag(colorBackground);
vwColor.setBackgroundColor(colorBackground);
}
vwColor.setVisibility(color_stripe ? View.VISIBLE : View.GONE);
// Expander
if (ibExpander.getTag() == null || (boolean) ibExpander.getTag() != expanded) {
@@ -3895,6 +3897,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
this.date = prefs.getBoolean("date", true);
this.threading = prefs.getBoolean("threading", true);
this.avatars = (contacts && avatars) || generated;
this.color_stripe = prefs.getBoolean("color_stripe", true);
this.name_email = prefs.getBoolean("name_email", false);
this.distinguish_contacts = prefs.getBoolean("distinguish_contacts", false);