From 2747e159530eecd1ad469298ba0d9a66a3cbc15a Mon Sep 17 00:00:00 2001 From: KaiserBh Date: Wed, 11 Oct 2023 23:22:56 +1100 Subject: [PATCH] refactor: remove private as it's used by sync. Signed-off-by: KaiserBh --- .../eu/kanade/tachiyomi/data/backup/BackupCreator.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupCreator.kt b/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupCreator.kt index b70df331f..55108a75b 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupCreator.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupCreator.kt @@ -143,7 +143,7 @@ class BackupCreator( } } - private fun prepExtensionInfoForSync(mangas: List): List { + fun prepExtensionInfoForSync(mangas: List): List { return mangas .asSequence() .map(Manga::source) @@ -158,7 +158,7 @@ class BackupCreator( * * @return list of [BackupCategory] to be backed up */ - private suspend fun backupCategories(options: Int): List { + suspend fun backupCategories(options: Int): List { // Check if user wants category information in backup return if (options and BACKUP_CATEGORY_MASK == BACKUP_CATEGORY) { getCategories.await() @@ -169,7 +169,7 @@ class BackupCreator( } } - private suspend fun backupMangas(mangas: List, flags: Int): List { + suspend fun backupMangas(mangas: List, flags: Int): List { return mangas.map { backupManga(it, flags) } @@ -229,13 +229,13 @@ class BackupCreator( return mangaObject } - private fun backupAppPreferences(flags: Int): List { + fun backupAppPreferences(flags: Int): List { if (flags and BACKUP_APP_PREFS_MASK != BACKUP_APP_PREFS) return emptyList() return preferenceStore.getAll().toBackupPreferences() } - private fun backupSourcePreferences(flags: Int): List { + fun backupSourcePreferences(flags: Int): List { if (flags and BACKUP_SOURCE_PREFS_MASK != BACKUP_SOURCE_PREFS) return emptyList() return sourceManager.getOnlineSources()