diff options
| author | 2024-11-12 14:33:32 +0800 | |
|---|---|---|
| committer | 2024-11-12 09:41:27 +0000 | |
| commit | 97afa75805d0809f571dc9d11e5c12de2071177b (patch) | |
| tree | a599865f829faf556a189e39734c9549e8191a10 /libs/androidfw/ApkParsing.cpp | |
| parent | 247a20f2ee52efce4e260ae7f2bd105458857b74 (diff) | |
Unset window destroying state only if its surface is destroyed
Otherwise if mDestroying is unset unexpectedly, the pending
destroing surface of the window will show on screen again.
E.g. from ActivityRecord#notifyAppResumed
  -> ActivityRecord#destroySurfaces
   -> WindowStatedestroySurface(
       cleanupOnResume=true, appStopped=false)
Fix: 377179807
Flag: EXEMPT bugfix
Test: atest WindowStateTests#testDestroySurface
Test: Set the root view of a dialog in an activity to GONE.
      Switch to another activity and switch back before the
      previous activity stopped. The dialog should not appear
      on screen.
Change-Id: I380e87e0df40d5d5dda8ea71d1164cf9259da555
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions