Move save pages to manga title setting to Reader section

Also updating some of these strings, because of course I am

Co-Authored-By: arkon <4098258+arkon@users.noreply.github.com>
This commit is contained in:
Jays2Kings 2021-04-27 23:51:25 -04:00
parent 2f654e7f79
commit 1bcdd43235
3 changed files with 20 additions and 14 deletions

View File

@ -54,12 +54,6 @@ class SettingsDownloadController : SettingsController() {
titleRes = R.string.only_download_over_wifi titleRes = R.string.only_download_over_wifi
defaultValue = true defaultValue = true
} }
switchPreference {
key = Keys.folderPerManga
titleRes = R.string.save_pages_separately
summaryRes = R.string.create_folders_by_manga_title
defaultValue = false
}
preferenceCategory { preferenceCategory {
titleRes = R.string.remove_after_read titleRes = R.string.remove_after_read

View File

@ -334,11 +334,6 @@ class SettingsReaderController : SettingsController() {
titleRes = R.string.tapping titleRes = R.string.tapping
defaultValue = true defaultValue = true
} }
switchPreference {
key = Keys.readWithLongTap
titleRes = R.string.long_tap_dialog
defaultValue = true
}
switchPreference { switchPreference {
key = Keys.readWithVolumeKeys key = Keys.readWithVolumeKeys
titleRes = R.string.volume_keys titleRes = R.string.volume_keys
@ -352,5 +347,21 @@ class SettingsReaderController : SettingsController() {
preferences.readWithVolumeKeys().asImmediateFlow { isVisible = it }.launchIn(viewScope) preferences.readWithVolumeKeys().asImmediateFlow { isVisible = it }.launchIn(viewScope)
} }
} }
preferenceCategory {
titleRes = R.string.actions
switchPreference {
key = Keys.readWithLongTap
titleRes = R.string.show_on_long_press
defaultValue = true
}
switchPreference {
key = Keys.folderPerManga
titleRes = R.string.save_pages_separately
summaryRes = R.string.create_folders_by_manga_title
defaultValue = false
}
}
} }
} }

View File

@ -370,7 +370,6 @@
<string name="volume_keys">Volume keys</string> <string name="volume_keys">Volume keys</string>
<string name="invert_volume_keys">Invert volume keys</string> <string name="invert_volume_keys">Invert volume keys</string>
<string name="tapping">Tapping</string> <string name="tapping">Tapping</string>
<string name="long_tap_dialog">Long tap dialog</string>
<string name="background_color">Background color</string> <string name="background_color">Background color</string>
<string name="white">White</string> <string name="white">White</string>
<string name="black">Black</string> <string name="black">Black</string>
@ -432,6 +431,10 @@
<string name="automatic_can_still_switch">While using automatic page layout, you can still switch between layouts while reading without overriding this setting</string> <string name="automatic_can_still_switch">While using automatic page layout, you can still switch between layouts while reading without overriding this setting</string>
<string name="automatic_orientation">Automatic (based on orientation)</string> <string name="automatic_orientation">Automatic (based on orientation)</string>
<string name="webtoon_cannot_change">Cannot change reading mode from webtoon. Edit the series type first to change.</string> <string name="webtoon_cannot_change">Cannot change reading mode from webtoon. Edit the series type first to change.</string>
<string name="actions">Actions</string>
<string name="show_on_long_press">Show on long press</string>
<string name="save_pages_separately">Save pages in separate folders</string>
<string name="create_folders_by_manga_title">Creates folders according to manga title</string>
<plurals name="pages_plural"> <plurals name="pages_plural">
<item quantity="one">%1$d page</item> <item quantity="one">%1$d page</item>
<item quantity="other">%1$d pages</item> <item quantity="other">%1$d pages</item>
@ -801,8 +804,6 @@
<string name="ask_on_chapters_page">Delete during global updates, ask on chapters page</string> <string name="ask_on_chapters_page">Delete during global updates, ask on chapters page</string>
<string name="always_keep">Always keep</string> <string name="always_keep">Always keep</string>
<string name="always_delete">Always delete</string> <string name="always_delete">Always delete</string>
<string name="save_pages_separately">Save pages in separate folders</string>
<string name="create_folders_by_manga_title">Creates folders according to manga title</string>
<!-- Time --> <!-- Time -->
<string name="manual">Manual</string> <string name="manual">Manual</string>