Skip to content

Commit

Permalink
fix: ContactUtils.getBuddyName
Browse files Browse the repository at this point in the history
Signed-off-by: ACh Sulfate <[email protected]>
  • Loading branch information
cinit committed Aug 10, 2022
1 parent 7dd8a9b commit be8c885
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/io/github/qauxv/bridge/ContactUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public static String getBuddyName(@NonNull AppRuntime app, @NonNull String uin)
return null;
}
try {
return (String) getBuddyName.invoke(null, app, uin);
return (String) getBuddyName.invoke(null, app, uin, false);
} catch (IllegalAccessException e) {
// should not happen
Log.e(e);
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/io/github/qauxv/util/DexKit.java
Original file line number Diff line number Diff line change
Expand Up @@ -1647,7 +1647,7 @@ private static DexMethodDescriptor verifyTargetMethod(int i, HashSet<DexMethodDe
try {
Method method = m.getMethodInstance(Initiator.getHostClassLoader());
if (method.getReturnType() == String.class && Modifier.isStatic(method.getModifiers())
&& method.getParameterTypes().length == 2) {
&& method.getParameterTypes().length == 3) {
return m;
}
} catch (NoSuchMethodException e) {
Expand Down

0 comments on commit be8c885

Please sign in to comment.