Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ff8a95c4 authored by Xiaowen Lei's avatar Xiaowen Lei
Browse files

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
parent 75fa55d8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment