Vertical seekbar options hidden when force horizontal is enabled

(cherry picked from commit 4105d8de5618b4becd724a00070a2c5c43ba9c3c)
This commit is contained in:
CrepeTF 2021-03-21 13:23:25 +00:00 committed by Jobobby04
parent 3a148c73ac
commit 565f005692

View File

@ -67,12 +67,14 @@ class SettingsReaderController : SettingsController() {
titleRes = R.string.pref_show_vert_seekbar_landscape
summaryRes = R.string.pref_show_vert_seekbar_landscape_summary
defaultValue = false
preferences.forceHorizontalSeekbar().asImmediateFlow { isVisible = !it }.launchIn(viewScope)
}
switchPreference {
key = Keys.leftVerticalSeekbar
titleRes = R.string.pref_left_handed_vertical_seekbar
summaryRes = R.string.pref_left_handed_vertical_seekbar_summary
defaultValue = false
preferences.forceHorizontalSeekbar().asImmediateFlow { isVisible = !it }.launchIn(viewScope)
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
switchPreference {