Add Right and Left to reader settings (#4489)
* Add Right and Left to settings * Fix whoopsie and minor tweak to how the array is fetched (cherry picked from commit 3a790f3d66e72b77a8cd37d10fbbe53135ee9822)
This commit is contained in:
parent
6dc7b9de92
commit
1d3542b648
@ -251,13 +251,9 @@ class SettingsReaderController : SettingsController() {
|
|||||||
intListPreference {
|
intListPreference {
|
||||||
key = Keys.navigationModePager
|
key = Keys.navigationModePager
|
||||||
titleRes = R.string.pref_viewer_nav
|
titleRes = R.string.pref_viewer_nav
|
||||||
entriesRes = arrayOf(
|
entries = context.resources.getStringArray(R.array.pager_nav).also { values ->
|
||||||
R.string.default_nav,
|
entryValues = values.indices.map { index -> "$index" }.toTypedArray()
|
||||||
R.string.l_nav,
|
}
|
||||||
R.string.kindlish_nav,
|
|
||||||
R.string.edge_nav
|
|
||||||
)
|
|
||||||
entryValues = arrayOf("0", "1", "2", "3")
|
|
||||||
defaultValue = "0"
|
defaultValue = "0"
|
||||||
summary = "%s"
|
summary = "%s"
|
||||||
|
|
||||||
@ -324,13 +320,9 @@ class SettingsReaderController : SettingsController() {
|
|||||||
intListPreference {
|
intListPreference {
|
||||||
key = Keys.navigationModeWebtoon
|
key = Keys.navigationModeWebtoon
|
||||||
titleRes = R.string.pref_viewer_nav
|
titleRes = R.string.pref_viewer_nav
|
||||||
entriesRes = arrayOf(
|
entries = context.resources.getStringArray(R.array.webtoon_nav).also { values ->
|
||||||
R.string.default_nav,
|
entryValues = values.indices.map { index -> "$index" }.toTypedArray()
|
||||||
R.string.l_nav,
|
}
|
||||||
R.string.kindlish_nav,
|
|
||||||
R.string.edge_nav
|
|
||||||
)
|
|
||||||
entryValues = arrayOf("0", "1", "2", "3")
|
|
||||||
defaultValue = "0"
|
defaultValue = "0"
|
||||||
summary = "%s"
|
summary = "%s"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user