Skip to content

Commit a9d1ba1

Browse files
committed
fix VMRuntime instance
1 parent 48b797e commit a9d1ba1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/java/me/teble/xposed/autodaily/ui/MainLayout.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ fun MainLayout(navController: NavHostController) {
8181
fetchMeta()
8282
}
8383
meta ?: ToastUtil.send("拉取公告失败")
84-
notice.value = meta?.notice ?: ""
84+
notice.value = meta?.notice?.trimEnd() ?: ""
8585
}
8686
}
8787
if (showUpdateDialog.value) {

app/src/main/java/me/teble/xposed/autodaily/utils/NativeUtil.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ object NativeUtil {
1212
private val is64Bit: Boolean
1313
get() {
1414
val clazz = Class.forName("dalvik.system.VMRuntime")
15-
return clazz.new().invoke("is64Bit") as Boolean
15+
return clazz.invoke("getRuntime")!!.invoke("is64Bit") as Boolean
1616
}
1717

1818
private fun getLibFilePath(name: String): String {

0 commit comments

Comments
 (0)