Skip to content

Commit c58b900

Browse files
committed
Fix bug text composer for 2.25.3.XX
Signed-off-by: Dev4Mod <[email protected]>
1 parent 6ff0060 commit c58b900

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

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

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)