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
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
for (chapter in chapters) {
|
chapters.forEach { chapter ->
|
||||||
val pos = dbChapters.indexOf(chapter)
|
val pos = dbChapters.indexOfFirst { it.url == chapter.url }
|
||||||
if (pos != -1) {
|
if (pos != -1) {
|
||||||
val dbChapter = dbChapters[pos]
|
val dbChapter = dbChapters[pos]
|
||||||
chapter.id = dbChapter.id
|
chapter.id = dbChapter.id
|
||||||
chapter.copyFrom(dbChapter)
|
chapter.copyFrom(dbChapter)
|
||||||
break
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Filter the chapters that couldn't be found.
|
// Filter the chapters that couldn't be found.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user