Skip to content

Commit 9f992ac

Browse files
committed
Fix double tap to reaction
1 parent de7e57f commit 9f992ac

File tree

1 file changed

+9
-0
lines changed
  • app/src/main/java/com/wmods/wppenhacer/xposed/features/general

1 file changed

+9
-0
lines changed

app/src/main/java/com/wmods/wppenhacer/xposed/features/general/Others.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,15 @@ private void doubleTapReaction() throws Exception {
257257
var bubbleMethod = Unobfuscator.loadAntiRevokeBubbleMethod(classLoader);
258258
logDebug(Unobfuscator.getMethodDescriptor(bubbleMethod));
259259

260+
XposedBridge.hookAllConstructors(bubbleMethod.getDeclaringClass(), new XC_MethodHook() {
261+
@Override
262+
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
263+
var viewGroup = (ViewGroup) param.thisObject;
264+
viewGroup.setOnTouchListener(null);
265+
}
266+
});
267+
268+
260269
XposedBridge.hookMethod(bubbleMethod, new XC_MethodHook() {
261270

262271
@Override

0 commit comments

Comments
 (0)