summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorTony Huang <tonyychuang@google.com>2021-08-19 16:57:14 +0800
committerTony Huang <tonyychuang@google.com>2021-08-20 15:24:43 +0800
commitfbc5f923aae7afbce174e161583045f91cb8fbb9 (patch)
tree7e81bc793c1ef8a5b352b2a317465ba84596c1dd /tools/aapt2/java/JavaClassGenerator_test.cpp
parent90f055a04dfd49edc406d5db1c000c98bc8ef4a7 (diff)
Keep split bounds after configuration update
Before this change, split bounds always reset to half-half if rotation. This is weird on large screen devices because they can scale bounds in landscape too, so bounds will reset even if from landscape to seascape. Add restore mechanism by compute ration of current divider and total length. Use this ratio to compute estimate position in new configuration then get suitable snap target. Update divider position and split bounds by this snap target postition. Fix: 192533269 Test: pass existing tests Test: Set density to large screen, active stage split and make top task larger then rotate to landscape. Change-Id: I3ea12273348575ae968c76bdf9236155380526ec
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions