File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
app/src/main/java/com/wmods/wppenhacer/xposed/core/devkit Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1814,13 +1814,14 @@ public static Class<?> loadFragmentClass(ClassLoader classLoader) throws Excepti
18141814
18151815 public static Method loadMediaQualitySelectionMethod (ClassLoader classLoader ) throws Exception {
18161816 return UnobfuscatorCache .getInstance ().getMethod (classLoader , () -> {
1817- var methodData = dexkit .findMethod (FindMethod .create ().matcher (
1818- MethodMatcher .create ().addUsingString ("enable_media_quality_tool" ).
1817+ var classData = dexkit .getClassData ("com.whatsapp.mediacomposer.MediaComposerActivity" );
1818+ var methodData = Objects .requireNonNull (classData ).findMethod (FindMethod .create ().matcher (
1819+ MethodMatcher .create ().addUsingNumber (6033 ).
18191820 returnType (boolean .class )
18201821 ));
18211822 if (methodData .isEmpty ())
18221823 throw new RuntimeException ("MediaQualitySelection method not found" );
1823- return methodData .get ( 0 ).getMethodInstance (classLoader );
1824+ return methodData .single ( ).getMethodInstance (classLoader );
18241825 });
18251826 }
18261827
You can’t perform that action at this time.
0 commit comments