mirror of
https://github.com/LittleTurtle2333/SimplicityTools.git
synced 2026-07-12 19:31:17 +08:00
修复上层显示
This commit is contained in:
@@ -27,5 +27,27 @@ class Android : IXposedHookLoadPackage {
|
|||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
XposedBridge.log(e)
|
XposedBridge.log(e)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//上层显示
|
||||||
|
try {
|
||||||
|
XposedHelpers.findAndHookMethod("com.android.server.wm.AlertWindowNotification",
|
||||||
|
lpparam.classLoader,
|
||||||
|
"onPostNotification",
|
||||||
|
object : XC_MethodHook() {
|
||||||
|
override fun beforeHookedMethod(param: MethodHookParam) {
|
||||||
|
if (prefs.hasFileChanged()) {
|
||||||
|
prefs.reload()
|
||||||
|
}
|
||||||
|
if (prefs.getBoolean("delete_on_post_notification", false)) {
|
||||||
|
param.result = null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
} catch (e: Exception) {
|
||||||
|
XposedBridge.log(e)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user