From 151c1403e89e445e0cb53513af80c637d0868d06 Mon Sep 17 00:00:00 2001 From: Hicores Date: Sat, 22 Jul 2023 13:19:36 +0800 Subject: [PATCH] fix: sticker panel wrong entrance Signed-off-by: Hicores --- .../stickerPanel/Hooker/StickerPanelEntryHooker.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/cc/hicore/hook/stickerPanel/Hooker/StickerPanelEntryHooker.java b/app/src/main/java/cc/hicore/hook/stickerPanel/Hooker/StickerPanelEntryHooker.java index ffe6bcd9e2..47a3078019 100644 --- a/app/src/main/java/cc/hicore/hook/stickerPanel/Hooker/StickerPanelEntryHooker.java +++ b/app/src/main/java/cc/hicore/hook/stickerPanel/Hooker/StickerPanelEntryHooker.java @@ -125,10 +125,12 @@ protected boolean initOnce() throws Exception { new Class[]{Initiator.load("com.tencent.qqnt.aio.shortcutbar.a")}), param -> { ImageView imageView = (ImageView) param.getResult(); - imageView.setOnLongClickListener(view -> { - ICreator.createPanel(view.getContext()); - return true; - }); + if ("表情".contentEquals(imageView.getContentDescription())){ + imageView.setOnLongClickListener(view -> { + ICreator.createPanel(view.getContext()); + return true; + }); + } }); //Hook for longClick msgItem