Skip to content

v1.0.6

Choose a tag to compare

@github-actions github-actions released this 20 Oct 06:53
· 244 commits to main since this release

时钟显秒(Clock Seconds)v1.0.6

修复

  • 小米 / 其它厂商状态栏时间消失(#2):此前「固定占位宽度」逻辑对所有机型无条件执行,在 MiuiClock(wrap_content 且未重写 onMeasure)上会把时间文本裁掉。现在宽度锁定只在 ColorOS 系(OPPO / 一加 / realme)生效,且只设 minWidth、不再设 maxWidth——minWidth 已足够避免显秒开关引起的横向移位,maxWidth 在字体测量有偏差时会裁切文本。其它厂商不再对时钟视图做任何宽度约束。
  • 该问题在 HyperOS 4 / Android 17(小米 12S Ultra)上复现,感谢 @1332514136 提供的高质量定位分析。

说明

  • 仅作用域:com.android.systemui
  • 最低支持:Android 10
  • 签名证书 SHA-256 与 v1.0.5 一致(2850e82a…),可直接覆盖升级

Clock Seconds v1.0.6

Fixed

  • Clock disappearing on Xiaomi / other vendors (#2): the "fixed placeholder width" logic used to run unconditionally on every vendor; on MiuiClock (which is wrap_content and does not override onMeasure) it clipped the clock text away. The width lock is now applied only on ColorOS-family devices (OPPO / OnePlus / realme), and it sets only minWidth, no longer maxWidth — minWidth alone already prevents the horizontal shift when seconds are toggled, while maxWidth clips text whenever font measurement is slightly off. Other vendors get no width constraint at all.
  • Reported on HyperOS 4 / Android 17 (Xiaomi 12S Ultra); thanks to @1332514136 for the excellent root-cause analysis.

Notes

  • Scope only: com.android.systemui
  • Minimum supported: Android 10
  • Same signing certificate SHA-256 as v1.0.5 (2850e82a…), so it installs over the previous version without uninstalling