diff options
| author | 2022-02-14 12:26:45 +0000 | |
|---|---|---|
| committer | 2022-03-14 21:51:14 +0000 | |
| commit | f450d3c0549daa109d6fecd6e5596846cc44a332 (patch) | |
| tree | ec1775952279c3b0a304dadfb1cb55828ce8bbf7 /libs/androidfw/StringPool.cpp | |
| parent | 57794d59d779e9a32b7f3639c296aad706bd0367 (diff) | |
Support downscaling of Drawable icons in LocalImageResolver
LocalImageResolver only enforced downscaling for Uri-based Icons at this point. This still allowed app developers to provide large bitmaps as a resource or as a bitmap payload itself. This change also verifies these new types of bitmaps.
Also adds an external size parameter to image resolver so different widgets can use it - right now the upper limit was hardcoded in pixels.
Bug:218845090
Bug:210690571
Test: Manually on device - tested on Raven and new Pixel with multiple
notification sizes via notification test apk.
Unit tests
Change-Id: I504694cb27953bc7950669b1b48f90d2e9c6a68d
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions