Change alarm time text appearance

This commit is contained in:
Phillip Hsu
2016-09-01 01:09:41 -07:00
parent ce9797e8fd
commit 2218114adc
2 changed files with 4 additions and 2 deletions
@@ -180,7 +180,9 @@ public abstract class BaseAlarmViewHolder extends BaseViewHolder<Alarm> {
TextView colorsSource = (TextView) itemView.findViewById(R.id.colors_source);
ColorStateList colors = colorsSource.getTextColors();
int def = colors.getDefaultColor();
int disabled = colors.getColorForState(new int[] {-android.R.attr.state_enabled}, def);
// Too light
// int disabled = colors.getColorForState(new int[] {-android.R.attr.state_enabled}, def);
int disabled = colorsSource.getCurrentHintTextColor();
// We only have two states, so we don't care about losing the other state colors.
mTime.setTextColor(alarm.isEnabled() ? def : disabled);
}