Also apply changes to online restore
This commit is contained in:
parent
f91d1af373
commit
e7c16cd0d1
@ -451,13 +451,12 @@ class FullBackupManager(val context: Context) : AbstractBackupManager() {
|
||||
return false
|
||||
}
|
||||
|
||||
for (chapter in chapters) {
|
||||
val pos = dbChapters.indexOf(chapter)
|
||||
chapters.forEach { chapter ->
|
||||
val pos = dbChapters.indexOfFirst { it.url == chapter.url }
|
||||
if (pos != -1) {
|
||||
val dbChapter = dbChapters[pos]
|
||||
chapter.id = dbChapter.id
|
||||
chapter.copyFrom(dbChapter)
|
||||
break
|
||||
}
|
||||
}
|
||||
// Filter the chapters that couldn't be found.
|
||||
|
Loading…
x
Reference in New Issue
Block a user