Hide invert volume keys setting when volume keys isn't enabled

This commit is contained in:
arkon 2020-07-10 12:47:52 -04:00
parent 93960315d9
commit 339169b624

View File

@ -228,7 +228,9 @@ class SettingsReaderController : SettingsController() {
key = Keys.readWithVolumeKeysInverted
titleRes = R.string.pref_read_with_volume_keys_inverted
defaultValue = false
}.apply { dependency = Keys.readWithVolumeKeys }
preferences.readWithVolumeKeys().asImmediateFlow { isVisible = it }.launchIn(scope)
}
}
}
}