From ea6e5eebacc9f736518ad181c3556f628f95dbac Mon Sep 17 00:00:00 2001 From: arkon Date: Thu, 27 Apr 2023 22:54:07 -0400 Subject: [PATCH] Remove "when tapping" from "Pan wide images" setting Closes #9343 --- .../settings/screen/SettingsReaderScreen.kt | 10 +++++----- .../main/res/layout/reader_pager_settings.xml | 18 +++++++++--------- i18n/src/main/res/values/strings.xml | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsReaderScreen.kt b/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsReaderScreen.kt index c55c0d715..577b9c859 100644 --- a/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsReaderScreen.kt +++ b/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsReaderScreen.kt @@ -178,11 +178,6 @@ object SettingsReaderScreen : SearchableSettings { ), enabled = navMode != 5, ), - Preference.PreferenceItem.SwitchPreference( - pref = readerPreferences.navigateToPan(), - title = stringResource(R.string.pref_navigate_pan), - enabled = navMode != 5, - ), Preference.PreferenceItem.ListPreference( pref = imageScaleTypePref, title = stringResource(R.string.pref_image_scale_type), @@ -215,6 +210,11 @@ object SettingsReaderScreen : SearchableSettings { pref = readerPreferences.cropBorders(), title = stringResource(R.string.pref_crop_borders), ), + Preference.PreferenceItem.SwitchPreference( + pref = readerPreferences.navigateToPan(), + title = stringResource(R.string.pref_navigate_pan), + enabled = navMode != 5, + ), Preference.PreferenceItem.SwitchPreference( pref = dualPageSplitPref, title = stringResource(R.string.pref_dual_page_split), diff --git a/app/src/main/res/layout/reader_pager_settings.xml b/app/src/main/res/layout/reader_pager_settings.xml index a18091889..0cbc9c70e 100644 --- a/app/src/main/res/layout/reader_pager_settings.xml +++ b/app/src/main/res/layout/reader_pager_settings.xml @@ -30,15 +30,6 @@ android:entries="@array/invert_tapping_mode" app:title="@string/pref_read_with_tapping_inverted" /> - - + + Fit height Original size Smart fit - Pan wide images when tapping + Pan wide images Zoom landscape image Zoom start position Automatic