Skip to content

Commit

Permalink
fix: RepeaterPlus big font and optimize menu
Browse files Browse the repository at this point in the history
  • Loading branch information
klxiaoniu committed Jul 21, 2023
1 parent 7c98260 commit b83edf5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/cc/hicore/hook/RepeaterPlus.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import com.tencent.qqnt.kernel.nativeinterface.Contact;
import com.tencent.qqnt.kernel.nativeinterface.IKernelMsgService;
import com.tencent.qqnt.kernel.nativeinterface.MsgAttributeInfo;
import com.xiaoniu.util.ContextUtils;
import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XposedBridge;
import de.robv.android.xposed.XposedHelpers;
Expand Down Expand Up @@ -255,6 +256,9 @@ protected void afterHookedMethod(MethodHookParam param) {
}
Method finalGetMsg = getMsg;
HookUtils.hookAfterIfEnabled(this, listMethod, param -> {
if (ContextUtils.getCurrentActivity().getClass().getName().contains("MultiForwardActivity")) {
return;
}
Object msg = finalGetMsg.invoke(param.thisObject);
Object item = CustomMenu.createItemNt(msg, "+1", R.id.item_repeat, () -> {
repeatByForwardNt(msg);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,10 @@
import com.tencent.qqnt.kernel.nativeinterface.VASMsgNamePlate;
import io.github.qauxv.bridge.AppRuntimeHelper;
import io.github.qauxv.bridge.ntapi.MsgServiceHelper;
import io.github.qauxv.util.HostInfo;
import io.github.qauxv.util.Initiator;
import io.github.qauxv.util.QQVersion;
import java.lang.reflect.Constructor;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;

public class Nt_kernel_bridge {
Expand All @@ -68,7 +65,7 @@ public static MsgAttributeInfo getDefaultAttributeInfo() {

VASMsgNamePlate plate = new VASMsgNamePlate(258, 64, 0, 0, 0, 0, 258, 0, new ArrayList<>(), 0, 0);
VASMsgBubble bubble = new VASMsgBubble(0, 0, 0, 0);
VASMsgFont font = new VASMsgFont(65536, 0L, 0, 0, 2000);
VASMsgFont font = new VASMsgFont(65536, 0L, 0, 0, 0);
VASMsgAvatarPendant pendant = new VASMsgAvatarPendant();
VASMsgIceBreak iceBreak = new VASMsgIceBreak(null, null);
VASMsgElement element = new VASMsgElement(plate, bubble, pendant, font, iceBreak);
Expand Down

0 comments on commit b83edf5

Please sign in to comment.