mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-29 09:39:03 +03:00
Merge remote-tracking branch 'upstream/master' into aniyomi-mpv
This commit is contained in:
commit
c77acbafe7
2 changed files with 27 additions and 17 deletions
|
@ -66,9 +66,9 @@ class FullBackupManager(context: Context) : AbstractBackupManager(context) {
|
|||
|
||||
backup = Backup(
|
||||
backupManga(databaseManga, flags),
|
||||
backupCategories(),
|
||||
backupCategories(flags),
|
||||
backupAnime(databaseAnime, flags),
|
||||
backupCategoriesAnime(),
|
||||
backupCategoriesAnime(flags),
|
||||
emptyList(),
|
||||
backupExtensionInfo(databaseManga),
|
||||
emptyList(),
|
||||
|
@ -160,25 +160,35 @@ class FullBackupManager(context: Context) : AbstractBackupManager(context) {
|
|||
}
|
||||
|
||||
/**
|
||||
* Backup the categories of library
|
||||
* Backup the categories of manga library
|
||||
*
|
||||
* @return list of [BackupCategory] to be backed up
|
||||
*/
|
||||
private fun backupCategories(): List<BackupCategory> {
|
||||
return databaseHelper.getCategories()
|
||||
.executeAsBlocking()
|
||||
.map { BackupCategory.copyFrom(it) }
|
||||
private fun backupCategories(options: Int): List<BackupCategory> {
|
||||
// Check if user wants category information in backup
|
||||
return if (options and BACKUP_CATEGORY_MASK == BACKUP_CATEGORY) {
|
||||
databaseHelper.getCategories()
|
||||
.executeAsBlocking()
|
||||
.map { BackupCategory.copyFrom(it) }
|
||||
} else {
|
||||
emptyList()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Backup the categories of library
|
||||
* Backup the categories of anime library
|
||||
*
|
||||
* @return list of [BackupCategory] to be backed up
|
||||
*/
|
||||
private fun backupCategoriesAnime(): List<BackupCategory> {
|
||||
return animedatabaseHelper.getCategories()
|
||||
.executeAsBlocking()
|
||||
.map { BackupCategory.copyFrom(it) }
|
||||
private fun backupCategoriesAnime(options: Int): List<BackupCategory> {
|
||||
// Check if user wants category information in backup
|
||||
return if (options and BACKUP_CATEGORY_MASK == BACKUP_CATEGORY) {
|
||||
animedatabaseHelper.getCategories()
|
||||
.executeAsBlocking()
|
||||
.map { BackupCategory.copyFrom(it) }
|
||||
} else {
|
||||
emptyList()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -333,8 +333,8 @@
|
|||
|
||||
<!-- Reader section -->
|
||||
<string name="pref_fullscreen">Fullscreen</string>
|
||||
<string name="pref_show_navigation_mode">Show navigation layout overlay</string>
|
||||
<string name="pref_show_navigation_mode_summary">Show tap zones when reader is opened</string>
|
||||
<string name="pref_show_navigation_mode">Show tap zones overlay</string>
|
||||
<string name="pref_show_navigation_mode_summary">Briefly show when reader is opened</string>
|
||||
<string name="pref_dual_page_split">Dual page split</string>
|
||||
<string name="pref_dual_page_invert">Invert dual page split placement</string>
|
||||
<string name="pref_dual_page_invert_summary">If the placement of the dual page split doesn\'t match reading direction</string>
|
||||
|
@ -345,7 +345,7 @@
|
|||
<string name="pref_show_reading_mode">Show reading mode</string>
|
||||
<string name="pref_show_reading_mode_summary">Briefly show current mode when reader is opened</string>
|
||||
<string name="pref_true_color">32-bit color</string>
|
||||
<string name="pref_true_color_summary">Reduces banding, but impacts performance</string>
|
||||
<string name="pref_true_color_summary">Reduces banding, but may impact performance</string>
|
||||
<string name="pref_crop_borders">Crop borders</string>
|
||||
<string name="on">On</string>
|
||||
<string name="off">Off</string>
|
||||
|
@ -365,7 +365,7 @@
|
|||
<string name="pref_reader_navigation">Navigation</string>
|
||||
<string name="pref_read_with_volume_keys">Volume keys</string>
|
||||
<string name="pref_read_with_volume_keys_inverted">Invert volume keys</string>
|
||||
<string name="pref_read_with_tapping_inverted">Invert tapping</string>
|
||||
<string name="pref_read_with_tapping_inverted">Invert tap zones</string>
|
||||
<string name="tapping_inverted_none">None</string>
|
||||
<string name="tapping_inverted_horizontal">Horizontal</string>
|
||||
<string name="tapping_inverted_vertical">Vertical</string>
|
||||
|
@ -395,7 +395,7 @@
|
|||
<string name="webtoon_viewer">Webtoon</string>
|
||||
<string name="vertical_plus_viewer">Continuous vertical</string>
|
||||
<string name="pager_viewer">Paged</string>
|
||||
<string name="pref_viewer_nav">Navigation layout</string>
|
||||
<string name="pref_viewer_nav">Tap zones</string>
|
||||
<string name="pref_image_scale_type">Scale type</string>
|
||||
<string name="scale_type_fit_screen">Fit screen</string>
|
||||
<string name="scale_type_stretch">Stretch</string>
|
||||
|
|
Loading…
Reference in a new issue