From 0ba6164ac981331d0420c3beea95fbf00315abcd Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Sat, 13 Jul 2024 23:07:29 -0500 Subject: [PATCH] Lenient json parsing for backup import --- app/src/main/java/org/tasks/backup/TasksJsonImporter.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/tasks/backup/TasksJsonImporter.kt b/app/src/main/java/org/tasks/backup/TasksJsonImporter.kt index 005881eef..cb98cc0ea 100644 --- a/app/src/main/java/org/tasks/backup/TasksJsonImporter.kt +++ b/app/src/main/java/org/tasks/backup/TasksJsonImporter.kt @@ -377,7 +377,10 @@ class TasksJsonImporter @Inject constructor( } companion object { - private val json = Json { ignoreUnknownKeys = true} + private val json = Json { + isLenient = true + ignoreUnknownKeys = true + } private val ignorePrefs = intArrayOf( R.string.p_current_version, R.string.p_backups_android_backup_last