summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorRobert Carr <racarr@google.com>2017-04-24 15:33:11 -0700
committerRobert Carr <racarr@google.com>2017-04-25 11:05:09 -0700
commit89a28ab018d5ee3e16c99f2d5b4f4f8e05ca6125 (patch)
treefa5214d6ef86f02dd744bc4c084cc6dbf4104a6f /tools/aapt2/java/JavaClassGenerator.cpp
parent13ba34bf3789a33a0ab62947b12445820dffa945 (diff)
WindowManager: Take care with Surface lifetime during relayout to invisible.
In the relayout to invisible case where we choose not to apply an exit animation, we would call to WindowState#destroyOrSaveSurface bypassing the app stopped check. Notice WindowManagerService.java L1953 we could enter the relayout to invisible even if the client has not requested it if clientHidden were set to true (but not yet processed by the client). This means we can destroy the surface ahead of any notification to the client. We instead need to use the WindowState#destroySurface variant and respect the app token mAppStopped flag. #destroySurface expects mDestroying to have been set by the exit animation, so we will also need to set that. If destruction is deferred, it will be completed later by AppWindowToken#notifyAppStopped Bug: 36561071 Bug: 37533373 Test: Manual from repro in bug. Change-Id: If91b4c75fdbcbf87007551860f9eb64dbec9e032
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions