Skip to content

Commit

Permalink
fix: hyper 2 上通知图标隐藏失败的问题 (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
HChenX authored Dec 10, 2024
1 parent 9cea794 commit 32c16cd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/src/main/kotlin/statusbar/lyric/hook/module/SystemUILyric.kt
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,17 @@ class SystemUILyric : BaseHook() {
}
}
loadClassOrNull("com.android.systemui.statusbar.phone.NotificationIconAreaController").isNotNull {
if (it.isInterface) {
loadClassOrNull("com.android.systemui.statusbar.phone.MiuiPhoneStatusBarView").isNotNull { clazz ->
clazz.methodFinder().filterByName("setNotificationIconAreaInnner").first().createHook {
after { hook ->
mNotificationIconArea = hook.args[0] as View
"notify icon view: $mNotificationIconArea".log()
}
}
}
return@isNotNull
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
it.constructorFinder().first().createHook {
hideNoticeIcon()
Expand Down

0 comments on commit 32c16cd

Please sign in to comment.