diff options
author | Wale Ogunwale <ogunwale@google.com> | 2016-02-18 13:37:55 -0800 |
---|---|---|
committer | Wale Ogunwale <ogunwale@google.com> | 2016-02-18 13:57:45 -0800 |
commit | 722ff89fd1684179c342c3e9b6014c5499f90b90 (patch) | |
tree | d612d342feed376e1d01148bc96d621fe025521b /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 40d8823dd32a6898198c8680135dea715fbddd51 (diff) |
Protect against surfaceController and hasSurface getting out of sync.
WindowStateAnimator.mSurfaceController is set to null whenever a
surface is destroyed and WindowState.mHasSurface is set to false
shortly after that. However, it is possible for them to get out
of sync in a couple of places due to exceptions or duplicate destroy.
Consolidated the call to set WindowState.mHasSurface inside a finally
block in WindowStateAnimator.destroySurface
Also, cleaned up the code a little to that it is more obvious what is
going on.
Bug: 27235356
Change-Id: I7e6d0c1fb015531c393ac86dcaebebd134fad612
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions