From 88aea311f810f1dbaeb092abe126bd32af7874fe Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 20 Sep 2020 10:35:05 -0400 Subject: [PATCH] Remove support for backup v1 --- .../main/java/eu/kanade/tachiyomi/data/backup/BackupManager.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupManager.kt b/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupManager.kt index 66a7e55d39..e823a60822 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupManager.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupManager.kt @@ -84,7 +84,6 @@ class BackupManager(val context: Context, version: Int = CURRENT_VERSION) { } private fun initParser(): Gson = when (version) { - 1 -> GsonBuilder().create() 2 -> GsonBuilder() .registerTypeAdapter(MangaTypeAdapter.build()) @@ -93,7 +92,7 @@ class BackupManager(val context: Context, version: Int = CURRENT_VERSION) { .registerTypeAdapter(HistoryTypeAdapter.build()) .registerTypeHierarchyAdapter(TrackTypeAdapter.build()) .create() - else -> throw Exception("Json version unknown") + else -> throw Exception("Unknown backup version") } /**