Auto hiding invert double page setting in reader settings

This commit is contained in:
Jays2Kings 2021-04-13 15:09:32 -04:00
parent 2be38ab151
commit d36c6f501e

View File

@ -242,12 +242,13 @@ class SettingsReaderController : SettingsController() {
defaultValue = 2
}
infoPreference(R.string.automatic_can_still_switch).apply {
preferences.pageLayout().asImmediateFlow { isVisible = it == PageLayout.AUTOMATIC }.launchIn(viewScope)
preferences.pageLayout().asImmediateFlow(viewScope) { isVisible = it == PageLayout.AUTOMATIC }
}
switchPreference {
key = Keys.invertDoublePages
titleRes = R.string.invert_double_pages
defaultValue = false
preferences.pageLayout().asImmediateFlow(viewScope) { isVisible = it != PageLayout.SINGLE_PAGE }
}
}
preferenceCategory {