Skip to content

Commit

Permalink
fix(hook): 修复状态栏隐藏功能
Browse files Browse the repository at this point in the history
将状态栏隐藏功能的读取配置从 `settings` 模块更改为 `systemui` 模块,以修复功能失效的问题。

Signed-off-by: suqi8 <[email protected]>
  • Loading branch information
suqi8 committed Jan 27, 2025
1 parent 7d0e965 commit 9432e7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import com.highcapable.yukihookapi.hook.type.android.ViewClass

class StatusBar: YukiBaseHooker() {
override fun onHook() {
if (prefs("settings").getBoolean("hide_status_bar", false)) {
if (prefs("systemui").getBoolean("hide_status_bar", false)) {
loadApp(name = "com.android.systemui") {
"com.android.systemui.statusbar.phone.fragment.CollapsedStatusBarFragment".toClass().apply {
method {
Expand Down

0 comments on commit 9432e7a

Please sign in to comment.