Likely fixed the full backup crashing for some users
This commit is contained in:
parent
22f81758b0
commit
3dd10df45e
@ -168,7 +168,7 @@ class FullBackupManager(val context: Context) : AbstractBackupManager() {
|
||||
BackupSavedSearch(
|
||||
content.name,
|
||||
content.query,
|
||||
content.filters,
|
||||
content.filters.toString(),
|
||||
sourceId
|
||||
)
|
||||
}
|
||||
@ -494,7 +494,7 @@ class FullBackupManager(val context: Context) : AbstractBackupManager() {
|
||||
BackupSavedSearch(
|
||||
content.name,
|
||||
content.query,
|
||||
content.filters,
|
||||
content.filters.toString(),
|
||||
sourceId
|
||||
)
|
||||
}
|
||||
@ -508,7 +508,7 @@ class FullBackupManager(val context: Context) : AbstractBackupManager() {
|
||||
JsonSavedSearch(
|
||||
it.name,
|
||||
it.query,
|
||||
it.filterList
|
||||
Json.decodeFromString(it.filterList)
|
||||
)
|
||||
)
|
||||
} + preferences.eh_savedSearches().get()
|
||||
|
@ -2,8 +2,6 @@ package eu.kanade.tachiyomi.data.backup.full.models
|
||||
|
||||
import kotlinx.serialization.ExperimentalSerializationApi
|
||||
import kotlinx.serialization.Serializable
|
||||
import kotlinx.serialization.json.JsonArray
|
||||
import kotlinx.serialization.json.buildJsonArray
|
||||
import kotlinx.serialization.protobuf.ProtoNumber
|
||||
|
||||
/*
|
||||
@ -14,6 +12,6 @@ import kotlinx.serialization.protobuf.ProtoNumber
|
||||
data class BackupSavedSearch(
|
||||
@ProtoNumber(1) val name: String,
|
||||
@ProtoNumber(2) val query: String = "",
|
||||
@ProtoNumber(3) val filterList: JsonArray = buildJsonArray {},
|
||||
@ProtoNumber(3) val filterList: String = "",
|
||||
@ProtoNumber(4) val source: Long = 0
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user