summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorchaviw <chaviw@google.com>2018-02-23 16:46:38 -0800
committerchaviw <chaviw@google.com>2018-02-26 10:19:44 -0800
commit454a4d096f850316411fa98f459aa83688efcf17 (patch)
tree3574d47fb037679f7ced128a3f2a4a28d5140850 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent9c43e89bed52615bf2f7ab4ef85ade61f0cb1470 (diff)
Always store last inset values in relayoutWindow
Last insets are currently set when updateResizingWindowIfNeeded is called. However, sometimes the precondition in that method fails so the method returns early before updating last inset values. This causes issues if the call stack was from relayoutWindow since relayoutWindow sends the new insets back to the client. The client will then get the new values, but the server didn't store them as the last seen values. This will cause bad behavior because the next time insets are changed, the server may not update the client since it doesn't think anything has changed. This fix ensures that the server always updates the last inset values when the client gets and update to ensure the value are always the same. Fixes: 70518605 Test: Issue in bug is fixed Test: atest WindowManagerSmokeTest Change-Id: Ic70da0b3caa02462df29395799d305eee7baf42d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions