Skip to content

Commit 7f252f0

Browse files
committed
add comment
1 parent 118fbfe commit 7f252f0

File tree

1 file changed

+1
-0
lines changed
  • AlwaysAllowChargingSounds/src/main/java/de/binarynoise/AlwaysAllowChargingSounds

1 file changed

+1
-0
lines changed

AlwaysAllowChargingSounds/src/main/java/de/binarynoise/AlwaysAllowChargingSounds/Hook.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class Hook : IXposedHookLoadPackage {
1717
override fun replaceHookedMethod(param: MethodHookParam): Boolean {
1818
val userId = param.args[0] as Int
1919
val context = XposedHelpers.getObjectField(param.thisObject, "mContext") as Context
20+
// charging_sounds_enabled comes from Settings.Secure.CHARGING_SOUNDS_ENABLED which is @hide
2021
return XposedHelpers.callStaticMethod(
2122
Settings.Secure::class.java, "getIntForUser", context.contentResolver, "charging_sounds_enabled", 1, userId
2223
) != 0

0 commit comments

Comments
 (0)