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

Commit 1e0d2429 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Wrap reparent in a try-catch." into main

parents d8546dce 09782e97
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()) {
                        try {
                            finishTransaction.reparent(leash, null);
                        } catch (Exception e) {
                            Log.e(TAG, "Failed to reparent leash", e);
                        }
                    }
                    // Don't release here since launcher might still be using them. Instead