Skip to content

Commit

Permalink
fix: RemoveDailySign & SimplifyQQSettingMe for 8.9.88
Browse files Browse the repository at this point in the history
  • Loading branch information
lliioollcn committed Nov 30, 2023
1 parent 873279e commit 54a7fe8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ object SimplifyQQSettingMe : MultiItemDelayableHook("SimplifyQQSettingMe") {
override fun initOnce() = throwOrTrue {

val kQQSettingMeView = Initiator.loadClass(
if (requireMinQQVersion(QQVersion.QQ_8_9_88)) "com.tencent.mobileqq.QQSettingMeView"
if (requireMinQQVersion(QQVersion.QQ_8_9_90)) "com.tencent.mobileqq.QQSettingMeView"
else if (requireMinQQVersion(QQVersion.QQ_8_9_25)) "com.tencent.mobileqq.activity.QQSettingMeView"
else "com.tencent.mobileqq.activity.QQSettingMe"
)
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/java/cc/ioctl/hook/ui/title/RemoveDailySign.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ object RemoveDailySign : CommonSwitchFunctionHook("kr_remove_daily_sign") {
val callback = HookUtils.afterIfEnabled(this) { param ->
// em_drawer_sign_up
val dailySignName = when {
requireMinQQVersion(QQVersion.QQ_8_9_90) -> "e0"
requireMinQQVersion(QQVersion.QQ_8_9_88) -> "h0"
requireMinQQVersion(QQVersion.QQ_8_9_70) -> "e0"
requireMinQQVersion(QQVersion.QQ_8_9_68) -> "h0"
requireMinQQVersion(QQVersion.QQ_8_9_28) -> "i0"
Expand Down Expand Up @@ -93,7 +95,7 @@ object RemoveDailySign : CommonSwitchFunctionHook("kr_remove_daily_sign") {
// private final com.tencent.mobileqq.bizParts.a F;
if (cz.name.contains(
when {
requireMinQQVersion(QQVersion.QQ_8_9_88) -> "com.tencent.mobileqq.bizParts"
requireMinQQVersion(QQVersion.QQ_8_9_90) -> "com.tencent.mobileqq.bizParts"
else -> "com.tencent.mobileqq.activity.qqsettingme.bizParts"
}
)
Expand Down

0 comments on commit 54a7fe8

Please sign in to comment.