mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-10 12:47:26 +01:00
Hide invert volume keys setting when volume keys isn't enabled
This commit is contained in:
parent
93960315d9
commit
339169b624
@ -228,7 +228,9 @@ class SettingsReaderController : SettingsController() {
|
|||||||
key = Keys.readWithVolumeKeysInverted
|
key = Keys.readWithVolumeKeysInverted
|
||||||
titleRes = R.string.pref_read_with_volume_keys_inverted
|
titleRes = R.string.pref_read_with_volume_keys_inverted
|
||||||
defaultValue = false
|
defaultValue = false
|
||||||
}.apply { dependency = Keys.readWithVolumeKeys }
|
|
||||||
|
preferences.readWithVolumeKeys().asImmediateFlow { isVisible = it }.launchIn(scope)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user