Skip to content

fix: 修复状态栏温度/电源功率指示器显示模糊 - #1700

Open
Andy-Dunne wants to merge 5 commits into
ReChronoRain:mainfrom
Andy-Dunne:pr
Open

Andy-Dunne wants to merge 5 commits into
ReChronoRain:mainfrom
Andy-Dunne:pr

Conversation

@Andy-Dunne

Copy link
Copy Markdown

原因:BatteryDetailIndicator.kt 中 hook 了温度/功耗指示器的 setVisibleState(),并通过 param.result = null 截断了原方法执行,导致部分刷新/重绘链路未完成,出现状态栏文字/色块变模糊的异常。
修复方式:删除 setVisibleState() hook 里的 param.result = null,只保留现有可见性同步逻辑,让原始渲染流程正常执行。
结果:温度/功耗指示器渲染保持稳定,避免模糊现象,已在小米17 HyperOS4.0.0.26测试通过。
变更范围:仅修改 BatteryDetailIndicator.kt 内的一处逻辑。

Remove setting param.result to null in setVisibleState hook.
@codacy-production

codacy-production Bot commented Sep 14, 2026

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 1 medium

Alerts:
⚠ 1 issue (≤ 0 issues of at least minor severity)

Results:
1 new issue

Category Results
Complexity 1 medium

View in Codacy

🟢 Metrics 5 complexity

Metric Results
Complexity 5

View in Codacy

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant