浏览代码

Remove support for backup v1

arkon 4 年之前
父节点
当前提交
88aea311f8
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupManager.kt

+ 1 - 2
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<MangaImpl>(MangaTypeAdapter.build())
@@ -93,7 +92,7 @@ class BackupManager(val context: Context, version: Int = CURRENT_VERSION) {
                 .registerTypeAdapter<DHistory>(HistoryTypeAdapter.build())
                 .registerTypeHierarchyAdapter<TrackImpl>(TrackTypeAdapter.build())
                 .create()
-        else -> throw Exception("Json version unknown")
+        else -> throw Exception("Unknown backup version")
     }
 
     /**