Always set card background color

pull/172/head
M66B 6 years ago
parent d1bdb7f4ed
commit 9ca9a86416

@ -37,7 +37,6 @@ public class ViewCardOptional extends CardView {
private boolean threading;
private int margin;
private int ident;
private Integer color = null;
public ViewCardOptional(@NonNull Context context) {
super(context);
@ -83,9 +82,6 @@ public class ViewCardOptional extends CardView {
@Override
public void setCardBackgroundColor(int color) {
if (this.color == null || this.color != color) {
this.color = color;
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
boolean cards = prefs.getBoolean("cards", true);
if (cards && color == Color.TRANSPARENT)
@ -93,7 +89,6 @@ public class ViewCardOptional extends CardView {
super.setCardBackgroundColor(color);
}
}
public void setOutgoing(boolean outgoing) {
if (cards && threading && indentation) {

Loading…
Cancel
Save