summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author Xiaowen Lei <xilei@google.com> 2025-02-07 19:14:56 +0000
committer Xiaowen Lei <xilei@google.com> 2025-02-08 00:54:35 +0000
commitff8a95c42987c5c688d87a41f8d659c1362894c2 (patch)
treee3dbb68bdcce4b10abcdf31a1bb571e4f0275955 /cmds/bootanimation/BootAnimation.cpp
parent75fa55d89a2d09722af929fb288c44d0b7633bad (diff)
Sync process movement with tracker via effectively padding the bar.
1. Start the bar at trackerDrawWidth/2 instead of 0; and end at w-trackerDrawWidth/2. 2. Drop the points at start/end, so the bar always starts and ends with a segment. - ProgressStyle already supports start/end icons outside the bar. Therefore no use case for start/end points any way. 3. Extend first and last segment to visually cover the trackerDrawWidth/2 spaces. Cleaned up special handling logic for start/end points. Also renamed mTrackerWidth to mTrackerDrawWidth to better convey its usage and improve readability. Flag: android.app.api_rich_ongoing Bug: 391678201 Test: Post ProgressStyle notifications via test app Test: patch ag/30006048 and run ProgressStyleNotificationScreenshotTest on device Test: NotificationProgressBarTest Change-Id: Ib72d2cd0685a471a86c0f97a21a60418d13ba788
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
0 files changed, 0 insertions, 0 deletions