diff options
author | Fabian Kozynski <kozynski@google.com> | 2019-11-11 12:16:27 -0500 |
---|---|---|
committer | Fabian Kozynski <kozynski@google.com> | 2019-11-11 12:16:27 -0500 |
commit | 4372f7c44d9a18e78253784b1ff864140f3a85ab (patch) | |
tree | b48430ad31b2e9c263b21540359498e917c385e7 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 5fdaa0c9af03cf5199bc6d6bb630d4c18f5bce05 (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_test.cpp')
0 files changed, 0 insertions, 0 deletions