Skip to content

Commit f24bd2b

Browse files
fixup! PowerManagerServiceHook
1 parent 654046f commit f24bd2b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

AntiWakeLock/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
Disable WAKE_LOCK and FLAG_KEEP_SCREEN_ON.
44

5-
Applies to selected apps only.
5+
Can be applied to selected apps or the whole system.

AntiWakeLock/src/main/java/com/programminghoch10/AntiWakeLock/PowerManagerServiceHook.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import de.robv.android.xposed.callbacks.XC_LoadPackage
99

1010
class PowerManagerServiceHook : IXposedHookLoadPackage {
1111
fun disableMethodByName(clazz: Class<*>, name: String) {
12-
val method = clazz.declaredMethods.single { it.name == "name" }
12+
val method = clazz.declaredMethods.single { it.name == name }
1313
XposedBridge.hookMethod(method, XC_MethodReplacement.DO_NOTHING)
1414
}
1515

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Disable WAKE_LOCK and FLAG_KEEP_SCREEN_ON.
22

3-
Applies to selected apps only.
3+
Can be applied to selected apps or the whole system.

0 commit comments

Comments
 (0)