We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfc06aa commit 0a451fbCopy full SHA for 0a451fb
1 file changed
app/src/main/java/com/sevtinge/hyperceiler/module/hook/home/UnlockHotseatIcon.kt
@@ -18,14 +18,10 @@
18
*/
19
package com.sevtinge.hyperceiler.module.hook.home
20
21
-import com.sevtinge.hyperceiler.utils.*
+import com.sevtinge.hyperceiler.module.base.tool.HookTool.MethodHook.*
22
23
class UnlockHotseatIcon : HomeBaseHook() {
24
override fun init() {
25
- DEVICE_CONFIG.hookBeforeMethod(
26
- if (isNewHome) "calHotseatMaxCount" else "getHotseatMaxCount"
27
- ) {
28
- it.result = 99
29
- }
+ findAndHookMethod(DEVICE_CONFIG, "getHotseatMaxCount", returnConstant(99))
30
}
31
0 commit comments