File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
app/src/main/java/com/wmods/wppenhacer/xposed/core/devkit Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1533,8 +1533,16 @@ public synchronized static Method loadTextStatusComposer2(ClassLoader classLoade
1533
1533
ClassMatcher .create ().addUsingString ("*" ).
1534
1534
addMethod (MethodMatcher .create ().paramCount (1 ).addParamType (TextDataClass ))
1535
1535
));
1536
- if (result .isEmpty ())
1537
- throw new RuntimeException ("TextStatusComposer2 class not found" );
1536
+ if (result .isEmpty ()) {
1537
+ result = dexkit .findClass (FindClass .create ().matcher (
1538
+ ClassMatcher .create ().addUsingString ("ViewOnce messages can not be forwarded" ).
1539
+ addMethod (MethodMatcher .create ().paramCount (1 ).addParamType (TextDataClass ))
1540
+ ));
1541
+ if (result .isEmpty ()) {
1542
+ throw new RuntimeException ("TextStatusComposer2 class not found" );
1543
+ }
1544
+ }
1545
+
1538
1546
var foundClass = result .get (0 ).getInstance (classLoader );
1539
1547
var resultMethod = ReflectionUtils .findMethodUsingFilter (foundClass , method -> method .getParameterCount () == 1 && method .getParameterTypes ()[0 ] == TextDataClass );
1540
1548
if (resultMethod != null )
You can’t perform that action at this time.
0 commit comments