Fixed migration

This commit is contained in:
tom5079
2020-09-05 18:11:20 +09:00
parent 1ddb636dd0
commit 486fbe46a0
2 changed files with 8 additions and 5 deletions

View File

@@ -310,15 +310,14 @@ fun xyz.quaver.pupil.util.downloader.DownloadManager.migrate() {
)
synchronized(Cache) {
Cache.instances.delete(galleryID)
Cache.delete(galleryID)
}
downloadFolderMap[galleryID] = folder.name
downloadFolder.getChild(".download").let { if (!it.exists()) it.createNewFile(); it.writeText(Json.encodeToString(downloadFolderMap)) }
}
}
downloadFolder.getChild(".download").let { if (!it.exists()) it.createNewFile() }
downloadFolder.getChild(".download").writeText(Json.encodeToString(downloadFolderMap))
notification
.setContentText(getText(R.string.import_old_galleries_notification_done))
.setProgress(0, 0, false)