修复A13状态栏兼容模式

This commit is contained in:
LittleTurtle2333
2023-02-17 22:29:30 +08:00
parent 4ed3e40e99
commit de220825a2

View File

@@ -52,7 +52,7 @@ object StatusBarLayoutForT : HookRegister() {
//判断是否开启居中挖孔兼容模式 //判断是否开启居中挖孔兼容模式
if (getHoleLocation == 1) { if (getHoleLocation == 1) {
findMethod("com.android.systemui.ScreenDecorations\$DisplayCutoutView") { findMethod("com.android.systemui.ScreenDecorations") {
name == "boundsFromDirection" && parameterCount == 3 && isStatic name == "boundsFromDirection" && parameterCount == 3 && isStatic
}.hookBefore { }.hookBefore {
it.args[1] = 0 it.args[1] = 0