From a47704071ba269a0e9dac791107b20464ccdfba0 Mon Sep 17 00:00:00 2001 From: CarlosEsco Date: Wed, 22 Apr 2020 11:45:49 -0400 Subject: [PATCH] add ability to adjust side padding in main reader settings --- .../tachiyomi/ui/setting/SettingsReaderController.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 901808033d..2d3724eece 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 @@ -115,6 +115,18 @@ class SettingsReaderController : SettingsController() { titleRes = R.string.crop_borders defaultValue = false } + + intListPreference(activity) { + key = Keys.webtoonSidePadding + titleRes = R.string.pref_webtoon_side_padding + entriesRes = arrayOf( + R.string.webtoon_side_padding_0, + R.string.webtoon_side_padding_10, R.string.webtoon_side_padding_15, + R.string.webtoon_side_padding_20, R.string.webtoon_side_padding_25 + ) + entryValues = listOf(0, 10, 15, 20, 25) + defaultValue = "0" + } } preferenceCategory { titleRes = R.string.navigation