diff options
author | Louis Chang <louischang@google.com> | 2018-11-19 18:25:34 +0800 |
---|---|---|
committer | Louis Chang <louischang@google.com> | 2018-11-20 22:38:08 +0800 |
commit | a358d7611ccf1a2a55da137ef3f8067ebac154e2 (patch) | |
tree | bd19e000196f0407251b6f6d050c539debd50f30 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 24efb38c077b921726b99320b822655ab1909b70 (diff) |
Set minimum scaled width/height to 1
Applications could be launched on a secondary display that
has lower density than default display. While some applications
may use 1x1 image resource as activity background, the scaled
width/height would be 0 if down scaling the 1x1 image with
scale ratio that is less than 1/2.
Making sure the scaled width/height won’t less than 1 to
prevent application crashed.
Bug: 117749148
Test: Launch app on secondary display
Change-Id: I73567dd237736466d0bc423485359d50073d86c1
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions