Disable PreferenceViews instead of hiding them

This commit is contained in:
moezbhatti
2019-09-15 22:37:57 -04:00
parent d6beabfb10
commit 04cdc0c2ce
16 changed files with 176 additions and 33 deletions
@@ -119,13 +119,12 @@ class TextViewStyler @Inject constructor(
else -> return
}
setTextColor(when (colorAttr) {
COLOR_THEME -> colors.theme().theme
COLOR_PRIMARY_ON_THEME -> colors.theme().textPrimary
COLOR_SECONDARY_ON_THEME -> colors.theme().textSecondary
COLOR_TERTIARY_ON_THEME -> colors.theme().textTertiary
else -> currentTextColor
})
when (colorAttr) {
COLOR_THEME -> setTextColor(colors.theme().theme)
COLOR_PRIMARY_ON_THEME -> setTextColor(colors.theme().textPrimary)
COLOR_SECONDARY_ON_THEME -> setTextColor(colors.theme().textSecondary)
COLOR_TERTIARY_ON_THEME -> setTextColor(colors.theme().textTertiary)
}
setTextSize(textView, textSizeAttr)
}