summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorWale Ogunwale <ogunwale@google.com>2016-02-18 13:37:55 -0800
committerWale Ogunwale <ogunwale@google.com>2016-02-18 13:57:45 -0800
commit722ff89fd1684179c342c3e9b6014c5499f90b90 (patch)
treed612d342feed376e1d01148bc96d621fe025521b /tools/aapt2/java/JavaClassGenerator.cpp
parent40d8823dd32a6898198c8680135dea715fbddd51 (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.cpp')
0 files changed, 0 insertions, 0 deletions