summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorLouis Chang <louischang@google.com>2018-11-19 18:25:34 +0800
committerLouis Chang <louischang@google.com>2018-11-20 22:38:08 +0800
commita358d7611ccf1a2a55da137ef3f8067ebac154e2 (patch)
treebd19e000196f0407251b6f6d050c539debd50f30 /tools/aapt2/java/JavaClassGenerator.cpp
parent24efb38c077b921726b99320b822655ab1909b70 (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