commit | caf2e5f350ef99dcb31dc1dd71d8a4a4f9ce954d | [log] [tgz] |
---|---|---|
author | Steven Ng <stevenckng@google.com> | Tue Aug 10 00:04:49 2021 +0100 |
committer | Steven Ng <stevenckng@google.com> | Tue Aug 10 18:18:11 2021 +0100 |
tree | 99977c153ea64ebfa2403ba5ce6add80abae4759 | |
parent | 0a39f6daec765a572d451c5e0f2e6100a743ce5d [diff] |
Use target size to scale down a widget preview image WidgetCells are being recycled in WidgetFullSheet. getWidth/getHeight could be a recycled dimension. There is also no guarantee that measure has taken placed before the scale down logic. Let's use the targeted width for the scale down logic instead. Test: Manual Fix: 195417705 Change-Id: Idfb3cc485604d19658e210709bebde6f163003cf