summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorFabian Kozynski <kozynski@google.com>2019-11-11 12:16:27 -0500
committerFabian Kozynski <kozynski@google.com>2019-11-11 12:16:27 -0500
commit4372f7c44d9a18e78253784b1ff864140f3a85ab (patch)
treeb48430ad31b2e9c263b21540359498e917c385e7 /tools/aapt2/java/JavaClassGenerator.cpp
parent5fdaa0c9af03cf5199bc6d6bb630d4c18f5bce05 (diff)
Prevent division by 0 in HeaderTileLayout
If the resolution is really small, only one column fits in QQS. In that case, set the margin between tiles to half of the white space available and use it to center that tile. Test: adb shell wm size 300x450 Fixes: 144093397 Change-Id: I8fdac5b2358bd4b7669ec6667438ae560231e45e
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions