Fix createBitmap exception at high density
createBitmap at high density will cause parcelling exception.
We carete big icon with smaller size.
The width/Height of expected icon
set to minimum of rightIconSize() and icon size.
Bug: 253559604
Test:
- Tested on device, it can pass the following test case.
1. CtsLegacyNotification30TestCases
2. android.app.notification.legacy30.cts.
3. NotificationTemplateApi30Test
#testPromoteBigPicture_withBigLargeIcon
Change-Id: Ib9304b34a4784179c08b76c4fc806244f2dcaf2e
2 files changed