diff options
| author | 2024-11-07 23:34:23 +0000 | |
|---|---|---|
| committer | 2024-11-07 23:52:29 +0000 | |
| commit | a118f93679b97f494ea99b6536ed9a9c17d64e5c (patch) | |
| tree | 7ea86e32925632465373c25a5c9d82dd5c5e6557 /api/api.go | |
| parent | 9839809ab22f26fd868e4edadbb1a974938eb41c (diff) | |
Handle the cases where the segment isn't long enough.
1. When the segment has a negative length (after subtracting gaps and
caps).
2. When the segment isn't long enough for drawing the caps (after
subtracting gaps).
Also fixed:
1. For dashed segments, there is no caps. Therefore we should draw
from `start` to `end`, rather than from `start + capWidth` to `end
- capWidth`.
2. Set `mPointRectF` directly from values rather than from
`mPointRect`.
Flag: android.app.api_rich_ongoing
Fix: 376491336
Bug: 376488208
Bug: 376487227
Bug: 376492598
Test: Post ProgressStyle notifs (as defined in the bugs) and observe the notification.
Change-Id: I6a0a45db4b136e024f41ee5a99e2eb8d27d43799
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions