Handle reader cutout setting with Insets to support Android 15+ (#2640)

This commit is contained in:
AntsyLich
2025-11-02 22:28:25 +06:00
committed by GitHub
parent 38b1bd7383
commit 0e0b6d9283
6 changed files with 48 additions and 44 deletions
@@ -101,7 +101,7 @@ object SettingsReaderScreen : SearchableSettings {
title = stringResource(MR.strings.pref_fullscreen),
),
Preference.PreferenceItem.SwitchPreference(
preference = readerPreferences.cutoutShort(),
preference = readerPreferences.drawUnderCutout(),
title = stringResource(MR.strings.pref_cutout_short),
enabled = LocalView.current.hasDisplayCutout() && fullscreen,
),