From d5caa850563d5a938eabcbde4c7f70d35105e3b0 Mon Sep 17 00:00:00 2001 From: ACh Sulfate Date: Sat, 28 Oct 2023 21:39:50 +0800 Subject: [PATCH] fix: ChatItemShowQQUin 8.9.88.12880/4790 --- app/src/main/java/io/github/qauxv/util/QQVersion.java | 1 + app/src/main/java/me/ketal/hook/ChatItemShowQQUin.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/main/java/io/github/qauxv/util/QQVersion.java b/app/src/main/java/io/github/qauxv/util/QQVersion.java index c86dc713b6..567d4d0490 100644 --- a/app/src/main/java/io/github/qauxv/util/QQVersion.java +++ b/app/src/main/java/io/github/qauxv/util/QQVersion.java @@ -105,4 +105,5 @@ private QQVersion() { public static final long QQ_8_9_80 = 4614; public static final long QQ_8_9_83 = 4680; public static final long qq_8_9_85 = 4766; + public static final long QQ_8_9_88_12880 = 4790; // beta } diff --git a/app/src/main/java/me/ketal/hook/ChatItemShowQQUin.kt b/app/src/main/java/me/ketal/hook/ChatItemShowQQUin.kt index e36bf23625..90b539aa84 100644 --- a/app/src/main/java/me/ketal/hook/ChatItemShowQQUin.kt +++ b/app/src/main/java/me/ketal/hook/ChatItemShowQQUin.kt @@ -96,6 +96,7 @@ object ChatItemShowQQUin : CommonConfigFunctionHook(), OnBubbleBuilder { // X2J_APT <- ???Binding <- AIOSenderBubbleTemplate private val NAME_TAIL_LAYOUT = when { + requireMinQQVersion(QQVersion.QQ_8_9_88_12880) -> "slv" requireMinQQVersion(QQVersion.qq_8_9_85) -> "sih" requireMinQQVersion(QQVersion.QQ_8_9_83) -> "shv" requireMinQQVersion(QQVersion.QQ_8_9_80) -> "sg6"