Skip to content

Commit

Permalink
fix Open an emoticon as a picture
Browse files Browse the repository at this point in the history
Signed-off-by: Hicores <me@hicore.cc>
  • Loading branch information
Hicores committed Sep 20, 2023
1 parent 6bfd1de commit 4ad105f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/src/main/java/cc/ioctl/hook/chat/EmoPicHook.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

import android.view.View;
import androidx.annotation.NonNull;
import cc.hicore.QApp.QAppUtils;
import cc.hicore.ReflectUtil.XMethod;
import cc.ioctl.util.HookUtils;
import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XposedHelpers;
import io.github.qauxv.base.annotation.FunctionHookEntry;
Expand All @@ -50,6 +53,11 @@ private EmoPicHook() {

@Override
public boolean initOnce() throws Exception {
if (QAppUtils.isQQnt()){
HookUtils.hookBeforeIfEnabled(this, XMethod.clz("com.tencent.qqnt.aio.adapter.api.impl.RichMediaBrowserApiImpl").name("checkIsFavPicAndShowPreview").ignoreParam().get(),
param -> param.setResult(false));
return true;
}
XposedHelpers.findAndHookMethod(_PicItemBuilder(),
"onClick", View.class, new XC_MethodHook(51) {

Expand Down

0 comments on commit 4ad105f

Please sign in to comment.