Fix fullscreen reader for notch device (#2595)

* Fix fullscreen reader for notch device

* Make cutout mode configurable

* Rename cutout option
This commit is contained in:
onlymash
2020-02-17 23:40:49 +08:00
committed by GitHub
parent a7ece4fdf3
commit 12aa04be93
7 changed files with 44 additions and 1 deletions
@@ -74,6 +74,13 @@ class SettingsReaderController : SettingsController() {
titleRes = R.string.pref_fullscreen
defaultValue = true
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
switchPreference {
key = Keys.cutoutShort
titleRes = R.string.pref_cutout_short
defaultValue = true
}
}
switchPreference {
key = Keys.keepScreenOn
titleRes = R.string.pref_keep_screen_on