summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorFabian Kozynski <kozynski@google.com>2019-04-15 14:09:43 -0400
committerFabian Kozynski <kozynski@google.com>2019-04-18 11:25:07 -0400
commit72cd84a9790770d162c3a6cf87e891dd4ed8420b (patch)
tree83ca3ccc719004b6c3a0d7cfe6b913226bad34bc /tools/aapt2/java/JavaClassGenerator_test.cpp
parent451e2d843d7ae152a732699733b52117f2f173b2 (diff)
Change how PagedTileLayout is measured
The change makes PagedTileLayout only use excess space from QSPanel after other views have been measured and the padding has been accounted for (see LinearLayout#measureVertical). PagedTileLayout caches the last height to be measured so as to minimize the number of times the number of rows is recalculated (and prevent loops). Also, fixed the calculation in TileLayout#updateMaxRows to match the height calculation in TileLayout#onMeasure. Test: manual, stress testing with multiple pages, adding and removing tiles, starting and disconnecting VPN, changing display size Bug:122714773 Change-Id: I5c85f03cfc79e341244d213fd92307821db80889
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions