Skip to content

Commit b632f43

Browse files
committed
fix: loadDialogViewClass identification logic
1 parent 4c432ca commit b632f43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/com/wmods/wppenhacer/xposed/core/devkit/Unobfuscator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,9 +1442,9 @@ public synchronized static Class<?> loadCoreMessageStore(ClassLoader loader) thr
14421442
*/
14431443
public synchronized static Class loadDialogViewClass(ClassLoader loader) throws Exception {
14441444
return UnobfuscatorCache.getInstance().getClass(loader, () -> {
1445+
var id = Utils.getID("touch_outside", "id");
14451446
var results = dexkit.findMethod(
1446-
new FindMethod()
1447-
.matcher(new MethodMatcher().addUsingString("touch_outside", StringMatchType.Equals)));
1447+
new FindMethod().matcher(new MethodMatcher().addUsingNumber(id).returnType(FrameLayout.class)));
14481448
if (results.isEmpty())
14491449
throw new Exception("DialogView class not found");
14501450
return results.get(0).getDeclaredClass().getInstance(loader);

0 commit comments

Comments
 (0)