6.7.0 - Alpha10 - autojs.(restart/exit) 方法支持应用重启时自动运行其参数指定的脚本 (issue #460)
This commit is contained in:
@@ -26,7 +26,9 @@ abstract class DictionaryDatabase internal constructor(context: Context): Closea
|
||||
SQLiteDatabase.openDatabase(context.getDatabasePath(databaseName).absolutePath, null, SQLiteDatabase.OPEN_READONLY)
|
||||
}
|
||||
|
||||
override fun close() = database.close()
|
||||
override fun close() {
|
||||
runCatching { database.close() }
|
||||
}
|
||||
|
||||
private fun copyDatabaseWithCompressionAndMd5(context: Context) {
|
||||
val dbFile = File(context.getDatabasePath(databaseName).path)
|
||||
|
||||
Reference in New Issue
Block a user