diff --git a/library/core/src/main/res/values-zh-rCN/strings_app.xml b/library/core/src/main/res/values-zh-rCN/strings_app.xml index 1245ca0c35..1ab3979134 100644 --- a/library/core/src/main/res/values-zh-rCN/strings_app.xml +++ b/library/core/src/main/res/values-zh-rCN/strings_app.xml @@ -625,6 +625,7 @@ 媒体卡片 焦点歌词 双击状态栏锁屏 + 禁用单击状态栏回到顶部 双排移动网络图标 当前因隐藏信号卡图标,此功能将禁止使用 图标主题 diff --git a/library/core/src/main/res/values/strings_app.xml b/library/core/src/main/res/values/strings_app.xml index 9a66ee904d..f9cc0d8347 100644 --- a/library/core/src/main/res/values/strings_app.xml +++ b/library/core/src/main/res/values/strings_app.xml @@ -665,6 +665,7 @@ Media card Focus lyrics Double-tap status bar to sleep + Disable single-tap status bar to scroll to top Double row signal bar This feature is disabled because the mobile network signal card icon is currently hidden Icon themes diff --git a/library/core/src/main/res/xml/system_ui_status_bar.xml b/library/core/src/main/res/xml/system_ui_status_bar.xml index f64231bfe7..f448f6f9b9 100644 --- a/library/core/src/main/res/xml/system_ui_status_bar.xml +++ b/library/core/src/main/res/xml/system_ui_status_bar.xml @@ -50,6 +50,11 @@ android:key="prefs_key_system_ui_status_bar_double_tap_to_sleep" android:title="@string/system_ui_status_bar_double_tap_to_sleep" /> + + . + * + * Copyright (C) 2023-2026 HyperCeiler Contributions + */ +package com.sevtinge.hyperceiler.libhook.rules.systemui.statusbar + +import com.sevtinge.hyperceiler.libhook.base.BaseHook +import com.sevtinge.hyperceiler.libhook.utils.hookapi.tool.beforeHookMethod + +object DisableStatusBarScrollToTop : BaseHook() { + + override fun init() { + findClassIfExists("com.miui.systemui.statusbar.StatusBarClickTool") + ?.beforeHookMethod("invokeInputManager", Boolean::class.javaPrimitiveType!!) { param -> + param.result = null + } + } +}