修复上层显示

This commit is contained in:
LittleTurtle2333
2022-02-16 15:53:28 +08:00
parent fc4c678450
commit d7a3275080

View File

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