Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c318ec4f authored by Luca Zuccarini's avatar Luca Zuccarini Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE when reparenting a leash that has already been released." into main

parents fd8d3bd2 67f210f7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -199,8 +199,10 @@ public abstract class RemoteAnimationRunnerCompat extends IRemoteAnimationRunner
                    info.releaseAllSurfaces();
                    // Make sure that the transition leashes created are not leaked.
                    for (SurfaceControl leash : leashMap.values()) {
                        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)
                    leashMap.clear();