commit | 4372f7c44d9a18e78253784b1ff864140f3a85ab | [log] [tgz] |
---|---|---|
author | Fabian Kozynski <kozynski@google.com> | Mon Nov 11 12:16:27 2019 -0500 |
committer | Fabian Kozynski <kozynski@google.com> | Mon Nov 11 12:16:27 2019 -0500 |
tree | b48430ad31b2e9c263b21540359498e917c385e7 | |
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