diff options
author | 2024-06-14 02:56:27 +0000 | |
---|---|---|
committer | 2024-06-14 02:56:27 +0000 | |
commit | a956e72a0bb62a05a8b54beec3187c596fb92cee (patch) | |
tree | 3f14778016aed3b35c0727b31fb3a24a7d97ab88 | |
parent | 7a4fbc01bc0891c7be4ef43c096c0e902c441665 (diff) | |
parent | bec9dd44d02b6745f7513591ef8b9a4445f9edaf (diff) |
Merge "Specific release windowless surface in core." into main
-rw-r--r-- | services/core/java/com/android/server/wm/BackNavigationController.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/wm/BackNavigationController.java b/services/core/java/com/android/server/wm/BackNavigationController.java index 0febec9169c0..297219064435 100644 --- a/services/core/java/com/android/server/wm/BackNavigationController.java +++ b/services/core/java/com/android/server/wm/BackNavigationController.java @@ -1366,8 +1366,6 @@ class BackNavigationController { ? task.getSurfaceControl() : mAdaptors[0].mTarget.getSurfaceControl()); } - // remove starting surface. - mStartingSurface = null; } } @@ -1384,7 +1382,10 @@ class BackNavigationController { .removeWindowlessStartingSurface(mRequestedStartingSurfaceId, !openTransitionMatch); mRequestedStartingSurfaceId = INVALID_TASK_ID; - mStartingSurface = null; + if (mStartingSurface != null && mStartingSurface.isValid()) { + mStartingSurface.release(); + mStartingSurface = null; + } } } |