mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-04 17:55:34 +08:00
修复
This commit is contained in:
@@ -163,7 +163,7 @@ class HookMain : IXposedHookLoadPackage {
|
||||
private fun XC_LoadPackage.LoadPackageParam.findAppName(instance: Any?) = try {
|
||||
findClass(ExpandedNotificationClass).getDeclaredMethod("getAppName").let {
|
||||
it.isAccessible = true
|
||||
it.invoke(instance) as? String ?: ""
|
||||
it.invoke(instance) as? String ?: "unknown"
|
||||
}
|
||||
} catch (_: Throwable) {
|
||||
"unknown"
|
||||
|
Reference in New Issue
Block a user