diff options
| author | 2024-12-18 02:15:38 +0000 | |
|---|---|---|
| committer | 2025-01-08 07:54:37 +0000 | |
| commit | e86d66169e53b30071f70a8fcd10615cc3ffa378 (patch) | |
| tree | 706188c80d52088af852a6cf2630201aaf9b4ac5 /libs/androidfw/ApkParsing.cpp | |
| parent | b4ccebe54307d30d4f25325fda57aecf7e88607c (diff) | |
Refactor to precalculate start/end positions for drawing Segment/Point.
The start/end positions for drawing will be precalculated and stored as
fields in NotifProgDrawable.Segment/Point, before they are
passed to NotifProgDrawable.setParts.
Also added documentation comment for `setProgress`, `setMin`, and
`setMax` to clarify that they only update the position of the tracker.
Also:
- Cleaned up Point.mIcon, which was never used.
- Cleaned up default color support for Segments and Points.
Flag: android.app.api_rich_ongoing
Bug: 372908709
Test: NotificationProgressBarTest
Test: Post ProgressStyle notifs via test app
Test: patch ag/30006048 and run ProgressStyleNotificationScreenshotTest
Change-Id: Ifc09326cccbe4e84ae49cb620ddb8414bb91aa5a
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions