mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-25 18:40:53 +00:00
upgrade dependencies
This commit is contained in:
parent
c212d9e551
commit
1ea8d936a4
7 changed files with 28 additions and 28 deletions
|
@ -156,8 +156,9 @@ class AppearanceSettingsFragment : SubScreenFragment() {
|
|||
summary = entries[entryValues.indexOfFirst { it == value }]
|
||||
}
|
||||
dayNightPref?.onPreferenceChangeListener = Preference.OnPreferenceChangeListener { _, value ->
|
||||
colorsNightPref?.isVisible = value as Boolean
|
||||
userColorsPrefNight?.isVisible = value && colorsNightPref?.value == KeyboardTheme.THEME_USER_NIGHT
|
||||
val yesThisIsBoolean = value as Boolean // apparently kotlin smartcast got less smart with 2.0.0
|
||||
colorsNightPref?.isVisible = yesThisIsBoolean
|
||||
userColorsPrefNight?.isVisible = yesThisIsBoolean && colorsNightPref?.value == KeyboardTheme.THEME_USER_NIGHT
|
||||
true
|
||||
}
|
||||
colorsNightPref?.isVisible = dayNightPref?.isChecked == true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue