Remove ThemeCache.getThemeColor(index)

pull/935/head
Alex Baker 4 years ago
parent 91ca91417b
commit 27f9d66e3c

@ -64,7 +64,7 @@ public class TagRecyclerAdapter extends RecyclerView.Adapter<TagPickerViewHolder
private int getColor(TagData tagData) {
ThemeColor themeColor =
tagData.getColor() == 0
? themeCache.getThemeColor(19)
? themeCache.getUntaggedColor()
: newThemeColor(context, tagData.getColor());
return themeColor.getPrimaryColor();
}

@ -84,7 +84,7 @@ public class ThemeCache {
getColor(context, i == 0 ? R.color.black_54 : R.color.white_60)));
}
untaggedColor =
new ThemeColor(context, 19, getColor(context, R.color.tag_color_none_background));
new ThemeColor(context, getColor(context, R.color.tag_color_none_background));
}
public WidgetTheme getWidgetTheme(int index) {
@ -109,11 +109,6 @@ public class ThemeCache {
return themes.get(index);
}
public ThemeColor getThemeColor(int index) {
return new ThemeColor(
context, index, ContextCompat.getColor(context, ThemeColor.COLORS[index]));
}
public ThemeColor getLauncherColor(int index) {
return new ThemeColor(
context, index, ContextCompat.getColor(context, ThemeColor.LAUNCHER_COLORS[index]), false);

Loading…
Cancel
Save