Hide cutout toggle button if fullscreen is off (#6150)

This commit is contained in:
Riztard Lanthorn
2021-10-30 23:19:15 +07:00
committed by GitHub
parent f0a5557e60
commit 33a02b47d5
2 changed files with 12 additions and 6 deletions
@@ -111,6 +111,7 @@ class SettingsReaderController : SettingsController() {
key = Keys.cutoutShort
titleRes = R.string.pref_cutout_short
defaultValue = true
preferences.fullscreen().asImmediateFlow { isVisible = it }.launchIn(viewScope)
}
}