6.7.0 - Alpha10 - autojs.(restart/exit) 方法支持应用重启时自动运行其参数指定的脚本 (issue #460)

This commit is contained in:
SuperMonster003
2025-11-03 13:19:47 +08:00
parent 3439c0c224
commit bc2f580e1c
19 changed files with 279 additions and 87 deletions

View File

@@ -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)