private int getPositiveTextColor(ColorScheme colorScheme) { if (PreferenceHelper.getGreenTextPreference(context)) { return colorScheme.getGreenPositiveColorResId(); } else { return colorScheme.getPositiveColorResId(); } }
public void setNewColorScheme(ColorScheme colorScheme) { positiveTextColor = getPositiveTextColor(colorScheme); negativeTextColor = colorScheme.getNegativeColorResId(); borderDrawableResId = colorScheme.getBorderDrawableResId(); borderDrawable = null; }