Show not interested icon when no list color chosen

pull/935/head
Alex Baker 6 years ago
parent 32bc8aac51
commit ff373cfbb4

@ -164,15 +164,16 @@ public abstract class BaseListSettingsActivity extends ThemedInjectingAppCompatA
protected void updateTheme() { protected void updateTheme() {
ThemeColor themeColor; ThemeColor themeColor;
DrawableUtil.setLeftDrawable(this, color, R.drawable.color_picker);
Drawable leftDrawable = getLeftDrawable(color);
if (selectedColor == 0) { if (selectedColor == 0) {
themeColor = this.themeColor; themeColor = this.themeColor;
DrawableUtil.setLeftDrawable(this, color, R.drawable.ic_outline_not_interested_24px);
DrawableCompat.setTint( DrawableCompat.setTint(
leftDrawable, ContextCompat.getColor(this, android.R.color.transparent)); getLeftDrawable(color), ContextCompat.getColor(this, R.color.icon_tint_with_alpha));
clear.setVisibility(View.GONE); clear.setVisibility(View.GONE);
} else { } else {
themeColor = newThemeColor(this, selectedColor); themeColor = newThemeColor(this, selectedColor);
DrawableUtil.setLeftDrawable(this, color, R.drawable.color_picker);
Drawable leftDrawable = getLeftDrawable(color);
DrawableCompat.setTint( DrawableCompat.setTint(
leftDrawable instanceof LayerDrawable leftDrawable instanceof LayerDrawable
? ((LayerDrawable) leftDrawable).getDrawable(0) ? ((LayerDrawable) leftDrawable).getDrawable(0)

Loading…
Cancel
Save