summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRobert Carr <racarr@google.com>2018-04-19 13:05:08 -0700
committerRobert Carr <racarr@google.com>2018-04-19 13:05:08 -0700
commit80923d5913f0cf42cf353a44fc533aa4936a1d6e (patch)
treeedf0a92d519f4ecc6ecdb131e0e0af3821d5aa6f /tools/aapt2/java/JavaClassGenerator_test.cpp
parenta194a6bee36365b7aa2cdf3e86fe26e600ef338b (diff)
ViewRoot: Check Surface validity before initializing renderer from draw().
Imagine we have a ViewRoot for a PopupWindow so it's view visibility will not directly be affected by the stopped state, but we still will end up destroying the surface. We could see a handler queue like this: ("handleStopped", "performTraversals"). If there were no size changes we won't call relayout and we won't notice we have lost the Surface and it seems there is nothing to prevent us from continuing in to draw. However, if we have handled STOP then the surface is now destroyed. Ensure we respect the stop signal and the released state it sets on the Surface. The original intent of this code-path should be preserved in the case that the client receives a new surface from relayout even if it hasn't yet received setWindowStopped(false). Bug: 62536731 Test: Manual Change-Id: I0eccd4dbfd00f9f61ad37086299f986463082a1f
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions