Add ability to tweak auto hide sensitivity in Webtoon Reader (#5650)

* Tweak threshold

* Put setting under Webtoon instead

Because it only affects Webtoon related viewers
This commit is contained in:
Andreas
2021-08-07 16:34:47 +02:00
committed by GitHub
parent 2f94f62a56
commit 7907a4fc24
6 changed files with 42 additions and 1 deletions
@@ -3,6 +3,7 @@ package eu.kanade.tachiyomi.ui.setting
import android.os.Build
import androidx.preference.PreferenceScreen
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.data.preference.PreferenceValues
import eu.kanade.tachiyomi.data.preference.PreferenceValues.TappingInvertMode
import eu.kanade.tachiyomi.data.preference.asImmediateFlow
import eu.kanade.tachiyomi.ui.reader.setting.OrientationType
@@ -274,6 +275,21 @@ class SettingsReaderController : SettingsController() {
defaultValue = "0"
summary = "%s"
}
listPreference {
key = Keys.readerHideThreshold
titleRes = R.string.pref_hide_threshold
entriesRes = arrayOf(
R.string.pref_highest,
R.string.pref_high,
R.string.pref_low,
R.string.pref_lowest
)
entryValues = PreferenceValues.ReaderHideThreshold.values()
.map { it.name }
.toTypedArray()
defaultValue = "${PreferenceValues.ReaderHideThreshold.LOW}"
summary = "%s"
}
switchPreference {
key = Keys.cropBordersWebtoon
titleRes = R.string.pref_crop_borders