Always show color bar

pull/162/head
M66B 6 years ago
parent bf04f15d39
commit 68ae019ee6

@ -183,6 +183,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
private int textColorPrimary; private int textColorPrimary;
private int textColorSecondary; private int textColorSecondary;
private int colorUnread; private int colorUnread;
private int colorSeparator;
private boolean hasWebView; private boolean hasWebView;
private boolean contacts; private boolean contacts;
@ -714,7 +715,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
// Account color // Account color
vwColor.setBackgroundColor(message.accountColor == null || !ActivityBilling.isPro(context) vwColor.setBackgroundColor(message.accountColor == null || !ActivityBilling.isPro(context)
? Color.TRANSPARENT : message.accountColor); ? colorSeparator : message.accountColor);
// Expander // Expander
boolean expanded = (viewType == ViewType.THREAD && properties.getValue("expanded", message.id)); boolean expanded = (viewType == ViewType.THREAD && properties.getValue("expanded", message.id));
@ -3286,6 +3287,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
else else
this.colorUnread = this.textColorPrimary; this.colorUnread = this.textColorPrimary;
this.colorSeparator = Helper.resolveColor(context, R.attr.colorSeparator);
this.hasWebView = Helper.hasWebView(context); this.hasWebView = Helper.hasWebView(context);
this.contacts = Helper.hasPermission(context, Manifest.permission.READ_CONTACTS); this.contacts = Helper.hasPermission(context, Manifest.permission.READ_CONTACTS);
this.textSize = Helper.getTextSize(context, zoom); this.textSize = Helper.getTextSize(context, zoom);

Loading…
Cancel
Save