Lenient json parsing for backup import

pull/2977/head
Alex Baker 4 months ago
parent 9894919f49
commit 0ba6164ac9

@ -377,7 +377,10 @@ class TasksJsonImporter @Inject constructor(
} }
companion object { companion object {
private val json = Json { ignoreUnknownKeys = true} private val json = Json {
isLenient = true
ignoreUnknownKeys = true
}
private val ignorePrefs = intArrayOf( private val ignorePrefs = intArrayOf(
R.string.p_current_version, R.string.p_current_version,
R.string.p_backups_android_backup_last R.string.p_backups_android_backup_last

Loading…
Cancel
Save