Repository navigation
feat: 添加 HyperOS 4 通知图标的适配 - #257
Merged
Merged
Conversation
Closed
Owner
|
不需要提供单测,单测本地 codex 能过就行 |
Owner
|
你可以让 codex 读取此线程,重新 review 并修改 |
- 恢复版本白名单的原有内联判断,仅保留 HyperOS 4.0 支持 - 按维护者意见移除仅用于本地验证的测试用例
Contributor
Author
|
已按意见修改:移除了 PR 中新增的版本支持单元测试,并将仅为测试抽出的 helper 收回原有版本判断逻辑,仅保留 HyperOS 4.0 白名单变更。本地已通过 |
fankes
approved these changes
Aug 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
适配 HyperOS 4 / Android 17 的 SystemUI API 变化,并修复原生通知样式下的通知面板图标变为单色、状态栏通知图标偶发显示为白块的问题。
主要变更
NotificationIconAreaController。onDarkChanged。isExpanded(Boolean)与新版isExpanded$1()。Entry、EntryAdapter、field 或 getter 获取通知数据。NotificationListenerService.Ranking.channel获取通知渠道优先级,避免 SystemUI 跨包读取 Channel 时触发SecurityException。StatusBarIconView.updateDrawable()完成后重新应用适配图标,修复开机或收到新通知后状态栏图标显示为白块的问题。测试环境
2509FPN0BC)popsicleOS4.0.0.20.XPBCNXMcom.android.systemuiCloses #256