File tree Expand file tree Collapse file tree 1 file changed +12
-15
lines changed
app/src/main/java/com/wmods/wppenhacer/xposed/core/devkit Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -1591,22 +1591,19 @@ public synchronized static Class loadListChannelItemClass(ClassLoader classLoade
15911591 }
15921592
15931593 public synchronized static Method loadTextStatusComposer (ClassLoader classLoader ) throws Exception {
1594- return UnobfuscatorCache .getInstance ().getMethod (classLoader , () -> {
1595- var methods = dexkit .findMethod (FindMethod .create ().matcher (MethodMatcher .create ().addUsingString ("background_color_key" , StringMatchType .Equals )));
1596- for (MethodData method : methods ) {
1597- var targetMethod = method .getDeclaredClass ().findMethod (
1598- FindMethod .create ().matcher (
1599- MethodMatcher .create ().returnType (int .class ).paramCount (1 )
1600- )
1601- );
1602-
1603- if (!targetMethod .isEmpty ()) {
1604- return targetMethod .single ().getMethodInstance (classLoader );
1605- }
1606- }
1594+ var methods = dexkit .findMethod (FindMethod .create ().matcher (MethodMatcher .create ().addUsingString ("background_color_key" , StringMatchType .Equals )));
1595+ for (MethodData method : methods ) {
1596+ var targetMethod = method .getDeclaredClass ().findMethod (
1597+ FindMethod .create ().matcher (
1598+ MethodMatcher .create ().returnType (int .class ).paramCount (1 )
1599+ )
1600+ );
16071601
1608- throw new RuntimeException ("TextStatusComposer class not found" );
1609- });
1602+ if (!targetMethod .isEmpty ()) {
1603+ return targetMethod .single ().getMethodInstance (classLoader );
1604+ }
1605+ }
1606+ return null ;
16101607 }
16111608
16121609 public synchronized static Method loadTextStatusComposer2 (ClassLoader classLoader ) throws Exception {
You can’t perform that action at this time.
0 commit comments