Skip to content

Commit

Permalink
fix: RemoveDailySign for 8.9.90
Browse files Browse the repository at this point in the history
  • Loading branch information
lliioollcn committed Nov 30, 2023
1 parent b75b076 commit e5e46bd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 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 @@ -90,8 +90,16 @@ object RemoveDailySign : CommonSwitchFunctionHook("kr_remove_daily_sign") {
if (clazz != null) {
clazz.findField {
val cz = type
if (cz.name.contains("com.tencent.mobileqq.activity.qqsettingme.bizParts")) {
// private final com.tencent.mobileqq.bizParts.a F;
if (cz.name.contains(
when {
requireMinQQVersion(QQVersion.QQ_8_9_88) -> "com.tencent.mobileqq.bizParts"
else -> "com.tencent.mobileqq.activity.qqsettingme.bizParts"
}
)
) {
var i = 0
// 目标类里面的 LinearLayout 类型的参数一定大于2
for (f in cz.declaredFields) {
if (f.type == LinearLayout::class.java) {
i++
Expand All @@ -110,6 +118,7 @@ object RemoveDailySign : CommonSwitchFunctionHook("kr_remove_daily_sign") {
fields.add(f)
}
}
// private LinearLayout g;
it.thisObject.getObjectAs<LinearLayout>(fields[1].name, LinearLayout::class.java).setViewZeroSize()
}
}
Expand Down

0 comments on commit e5e46bd

Please sign in to comment.