summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRobert Carr <racarr@google.com>2015-12-09 12:29:41 -0800
committerRobert Carr <racarr@google.com>2015-12-09 12:29:41 -0800
commit0df9b0f4ec369b6fb373e0b7cbebed153af66ea7 (patch)
treed78068d0acaec1a577449ad50973af6de600d5a5 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent70ac616b3851a063b974cf5e5c8bc764994cab7d (diff)
Prevent crash when manipulating hidden SurfaceView.
repositionChild was attempting to perform placement transactions on hidden views (which do not have a Surface) leading to an exception being thrown. Furthermore lack of a finally block prevented an open transaction from being closed while unwinding and rendered the system unuable. First we avoid performing transactions on windows without services. Second we correct flow to ensure transactions are closed in case an exception was thrown for other reasons. Bug: 25780116 Change-Id: If103158506298c8f5ec1b01d7e1c73e55427804a
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions