fix: 修复状态栏温度/电源功率指示器显示模糊 - #1700
Open
Andy-Dunne wants to merge 5 commits into
Open
Andy-Dunne wants to merge 5 commits into
Andy-Dunne wants to merge 5 commits into
Conversation
Remove setting param.result to null in setVisibleState hook.
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| Complexity | 1 medium |
🟢 Metrics 5 complexity
Metric Results Complexity 5
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
junhaoyyds
added a commit
to junhaoyyds/HyperCeiler
that referenced
this pull request
Sep 14, 2026
Refactor visibility handling for network speed view and improve error logging.
Simplified visibility handling for number, unit, and nsView.
junhaoyyds
added a commit
to junhaoyyds/HyperCeiler
that referenced
this pull request
Sep 17, 2026
junhaoyyds
added a commit
to junhaoyyds/HyperCeiler
that referenced
this pull request
Sep 17, 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.
原因:BatteryDetailIndicator.kt 中 hook 了温度/功耗指示器的 setVisibleState(),并通过 param.result = null 截断了原方法执行,导致部分刷新/重绘链路未完成,出现状态栏文字/色块变模糊的异常。
修复方式:删除 setVisibleState() hook 里的 param.result = null,只保留现有可见性同步逻辑,让原始渲染流程正常执行。
结果:温度/功耗指示器渲染保持稳定,避免模糊现象,已在小米17 HyperOS4.0.0.26测试通过。
变更范围:仅修改 BatteryDetailIndicator.kt 内的一处逻辑。