From 9cc0c4e0359cf06ef6257fc289f05a6f4fb9cf6e Mon Sep 17 00:00:00 2001 From: Soitora Date: Sun, 28 Jan 2024 11:13:18 +0100 Subject: [PATCH] Hide display cutout setting if fullscreen is off (#241) - make it behave like the one on more -> setting -> reader Co-authored-by: Riztard <16263232+Riztard@users.noreply.github.com> --- .../kanade/presentation/reader/settings/GeneralSettingsPage.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/presentation/reader/settings/GeneralSettingsPage.kt b/app/src/main/java/eu/kanade/presentation/reader/settings/GeneralSettingsPage.kt index 6b631d4eec..2f2832feb5 100644 --- a/app/src/main/java/eu/kanade/presentation/reader/settings/GeneralSettingsPage.kt +++ b/app/src/main/java/eu/kanade/presentation/reader/settings/GeneralSettingsPage.kt @@ -42,7 +42,7 @@ internal fun ColumnScope.GeneralPage(screenModel: ReaderSettingsScreenModel) { pref = screenModel.preferences.fullscreen(), ) - if (screenModel.hasDisplayCutout) { + if (screenModel.hasDisplayCutout && screenModel.preferences.fullscreen().get()) { CheckboxItem( label = stringResource(MR.strings.pref_cutout_short), pref = screenModel.preferences.cutoutShort(),