ui: force dark theme in TV mode
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
@@ -41,6 +41,12 @@ object UserKnobs {
|
||||
it[DARK_THEME] ?: false
|
||||
}
|
||||
|
||||
suspend fun setDarkTheme(on: Boolean) {
|
||||
Application.getPreferencesDataStore().edit {
|
||||
it[DARK_THEME] = on
|
||||
}
|
||||
}
|
||||
|
||||
private val ALLOW_REMOTE_CONTROL_INTENTS = booleanPreferencesKey("allow_remote_control_intents")
|
||||
val allowRemoteControlIntents: Flow<Boolean>
|
||||
get() = Application.getPreferencesDataStore().data.map {
|
||||
|
||||
Reference in New Issue
Block a user