diff options
author | 2025-03-20 02:56:04 -0700 | |
---|---|---|
committer | 2025-03-20 02:56:04 -0700 | |
commit | c318ec4f6b304b86e95e5e5f5c3e329f877b4806 (patch) | |
tree | 837597233255b6d57152caca9309e0f8068d3671 | |
parent | fd8d3bd21e0967ee6873f9c26a96252b241d37d5 (diff) | |
parent | 67f210f77a650094eacdfae07a40aabafc462c51 (diff) |
Merge "Fix NPE when reparenting a leash that has already been released." into main
-rw-r--r-- | packages/SystemUI/animation/src/com/android/systemui/animation/RemoteAnimationRunnerCompat.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/animation/src/com/android/systemui/animation/RemoteAnimationRunnerCompat.java b/packages/SystemUI/animation/src/com/android/systemui/animation/RemoteAnimationRunnerCompat.java index 060f0c94732d..9e08317d2c6b 100644 --- a/packages/SystemUI/animation/src/com/android/systemui/animation/RemoteAnimationRunnerCompat.java +++ b/packages/SystemUI/animation/src/com/android/systemui/animation/RemoteAnimationRunnerCompat.java @@ -199,7 +199,9 @@ public abstract class RemoteAnimationRunnerCompat extends IRemoteAnimationRunner info.releaseAllSurfaces(); // Make sure that the transition leashes created are not leaked. for (SurfaceControl leash : leashMap.values()) { - finishTransaction.reparent(leash, null); + if (leash.isValid()) { + finishTransaction.reparent(leash, null); + } } // Don't release here since launcher might still be using them. Instead // let launcher release them (eg. via RemoteAnimationTargets) |