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

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

Update drawable per UX spec without dashed segments.

Note: a corner radius is clamped to half the shorted edge of the shape.
Therefore having it at 16dp for the segments is equivalent to using a
capped stroke. 16dp is from the spec and the clamping matches the mock.

For drawing segments, switched to Rect completely for better consistency
and also flexibility. It also correctly handles the "// Not enough
segment length to draw the caps" case.

Also changed: removed `setTracker(null)` in `setIndeterminate`. Instead,
don't `drawTracker` when `isIndeterminate()` is true.

Also added `invalidateSelf()` in `setParts` and `setHasTrackerIcon`.

Flag: android.app.api_rich_ongoing
Fix: 376492598
Test: patch ag/30006048 and run ProgressStyleNotificationScreenshotTest
Test: Post ProgressStyle notifs (as defined in the bugs)
Change-Id: Ida447f06da026e7b079de7554e072588672272c7
parent 54cc66e8
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