Compare commits

..
2 Commits
Author SHA1 Message Date
txyyh 9cadf11b3b Bump a bugfix version
Releases / Build (push) Has been cancelled
2023-03-13 10:41:56 +00:00
tarsin d759b943b1 Fix db export 2023-03-13 10:39:39 +00:00
2 changed files with 3 additions and 2 deletions

No files matched your search

+2 -2
View File
@@ -53,8 +53,8 @@ android {
applicationId = "moe.tarsin.ehviewer"
minSdk = 28
targetSdk = 33
versionCode = 180036
versionName = "1.8.7.1"
versionCode = 180037
versionName = "1.8.7.2"
resourceConfigurations.addAll(
listOf(
"zh",
@@ -376,6 +376,7 @@ object EhDB {
copyDao(db.quickSearchDao(), newDb.quickSearchDao())
copyDao(db.localFavoritesDao(), newDb.localFavoritesDao())
copyDao(db.filterDao(), newDb.filterDao())
newDb.close()
val dbFile = context.getDatabasePath(ehExportName)
context.contentResolver.openFileDescriptor(uri, "rw")!!.use { toFd ->
ParcelFileDescriptor.open(dbFile, MODE_READ_ONLY).use { fromFd ->