From 303e6c010262b997efd8e89b55e13fa30c6ff2ab Mon Sep 17 00:00:00 2001 From: inorichi Date: Sat, 28 Apr 2018 10:40:08 +0200 Subject: [PATCH] Reorganize reader settings. Update Conductor version --- app/build.gradle | 2 +- .../ui/setting/SettingsReaderController.kt | 38 +++++++++++-------- app/src/main/res/values/strings.xml | 1 + 3 files changed, 25 insertions(+), 16 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index a084f78cb..8d58c4a6b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -203,7 +203,7 @@ dependencies { implementation 'me.gujun.android.taggroup:library:1.4@aar' // Conductor - implementation "com.github.inorichi.Conductor:conductor:05c4d4d" + implementation "com.github.inorichi.Conductor:conductor:be8b3c5" implementation ("com.bluelinelabs:conductor-support:2.1.5-SNAPSHOT") { exclude group: "com.bluelinelabs", module: "conductor" } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsReaderController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsReaderController.kt index 7b0cb48bd..ae9f739f6 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsReaderController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsReaderController.kt @@ -76,8 +76,8 @@ class SettingsReaderController : SettingsController() { defaultValue = true } switchPreference { - key = Keys.enableTransitions - titleRes = R.string.pref_page_transitions + key = Keys.keepScreenOn + titleRes = R.string.pref_keep_screen_on defaultValue = true } switchPreference { @@ -85,20 +85,28 @@ class SettingsReaderController : SettingsController() { titleRes = R.string.pref_show_page_number defaultValue = true } - switchPreference { - key = Keys.cropBorders - titleRes = R.string.pref_crop_borders - defaultValue = false + preferenceCategory { + titleRes = R.string.pager_viewer + + switchPreference { + key = Keys.enableTransitions + titleRes = R.string.pref_page_transitions + defaultValue = true + } + switchPreference { + key = Keys.cropBorders + titleRes = R.string.pref_crop_borders + defaultValue = false + } } - switchPreference { - key = Keys.cropBordersWebtoon - titleRes = R.string.pref_crop_borders_webtoon - defaultValue = false - } - switchPreference { - key = Keys.keepScreenOn - titleRes = R.string.pref_keep_screen_on - defaultValue = true + preferenceCategory { + titleRes = R.string.webtoon_viewer + + switchPreference { + key = Keys.cropBordersWebtoon + titleRes = R.string.pref_crop_borders + defaultValue = false + } } preferenceCategory { titleRes = R.string.pref_reader_navigation diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f62610451..c4ef4bfb4 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -190,6 +190,7 @@ Right to left Vertical Webtoon + Pager Image decoder Scale type Fit screen