Skip to content

Commit ae8ea39

Browse files
修复移除快速设置面板页脚安全警告
1 parent 78d58a6 commit ae8ea39

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

app/src/main/java/com/lt2333/wooboxforcoloros/hook/app/systemui/qs/RemoveFooterSecurityWarn.kt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.lt2333.wooboxforcoloros.hook.app.systemui.qs
22

3+
import com.github.kyuubiran.ezxhelper.utils.findMethod
34
import com.lt2333.wooboxforcoloros.util.hasEnable
45
import com.lt2333.wooboxforcoloros.util.hookBeforeMethod
56
import com.lt2333.wooboxforcoloros.util.xposed.base.HookRegister
@@ -8,12 +9,10 @@ object RemoveFooterSecurityWarn : HookRegister() {
89

910
override fun init() {
1011
hasEnable("remove_footer_security_warn") {
11-
"com.oplusos.systemui.qs.widget.OplusQSSecurityText".hookBeforeMethod(
12-
getDefaultClassLoader(),
13-
"shouldBeVisible",
14-
) {
15-
//未展开时的列数
16-
it.result = false
12+
findMethod("com.oplusos.systemui.qs.widget.OplusQSSecurityText") {
13+
name == "handleRefreshState"
14+
}.hookBeforeMethod {
15+
it.result = null
1716
}
1817
}
1918
}

0 commit comments

Comments
 (0)