Skip to content

Commit

Permalink
fix: RemoveDailySign for QQ8.9.68+ and move to Simplify.SLIDING_UI
Browse files Browse the repository at this point in the history
  • Loading branch information
klxiaoniu committed Jul 19, 2023
1 parent c8018ca commit 63de9cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 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 @@ -47,7 +47,7 @@ import java.lang.reflect.Field
object RemoveDailySign : CommonSwitchFunctionHook("kr_remove_daily_sign") {

override val name = "移除侧滑栏左上角打卡"
override val uiItemLocation = FunctionEntryRouter.Locations.Simplify.MAIN_UI_TITLE
override val uiItemLocation = FunctionEntryRouter.Locations.Simplify.SLIDING_UI

override val isAvailable: Boolean get() = !isTim()

Expand All @@ -56,6 +56,7 @@ 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_68) -> "h0"
requireMinQQVersion(QQVersion.QQ_8_9_28) -> "i0"
requireMinQQVersion(QQVersion.QQ_8_9_25) -> "h0"
// gap
Expand Down

0 comments on commit 63de9cb

Please sign in to comment.