From 040c7a0fc13ba0c044395cbfba80df4647e398cd Mon Sep 17 00:00:00 2001 From: KaiserBh Date: Wed, 20 Dec 2023 05:08:26 +1100 Subject: [PATCH] chore: Ktlint --- .../presentation/more/settings/screen/SettingsDataScreen.kt | 1 - .../kanade/tachiyomi/data/backup/restore/MangaRestorer.kt | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsDataScreen.kt b/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsDataScreen.kt index 83ac603d9..077c68ee6 100644 --- a/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsDataScreen.kt +++ b/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsDataScreen.kt @@ -41,7 +41,6 @@ import eu.kanade.tachiyomi.data.backup.BackupFileValidator import eu.kanade.tachiyomi.data.backup.create.BackupCreateJob import eu.kanade.tachiyomi.data.backup.restore.BackupRestoreJob import eu.kanade.tachiyomi.data.cache.ChapterCache -import eu.kanade.tachiyomi.data.download.DownloadCache import eu.kanade.tachiyomi.data.sync.SyncDataJob import eu.kanade.tachiyomi.data.sync.SyncManager import eu.kanade.tachiyomi.data.sync.service.GoogleDriveService diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/backup/restore/MangaRestorer.kt b/app/src/main/java/eu/kanade/tachiyomi/data/backup/restore/MangaRestorer.kt index 73b69f409..b130039e1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/backup/restore/MangaRestorer.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/backup/restore/MangaRestorer.kt @@ -165,13 +165,15 @@ class MangaRestorer( id = dbChapter.id, bookmark = chapter.bookmark || dbChapter.bookmark, read = chapter.read, - lastPageRead = chapter.lastPageRead + lastPageRead = chapter.lastPageRead, ) } else { chapter.copyFrom(dbChapter).let { when { dbChapter.read && !it.read -> it.copy(read = true, lastPageRead = dbChapter.lastPageRead) - it.lastPageRead == 0L && dbChapter.lastPageRead != 0L -> it.copy(lastPageRead = dbChapter.lastPageRead) + it.lastPageRead == 0L && dbChapter.lastPageRead != 0L -> it.copy( + lastPageRead = dbChapter.lastPageRead, + ) else -> it } }