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

Commit 1a5e95ed authored by Luca Zuccarini's avatar Luca Zuccarini Committed by Android Build Coastguard Worker
Browse files

Revert "Wrap reparent in a try-catch."

This reverts commit 09782e97.

Reason for revert: part of a revert chain to CP fix to b/404507270. The end state is the same as currently at ToT, but need to have cherry-pickable CLs for branches that are in CP mode.
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c400b92c7fea9c0e59b8c0311aeae68f188c6534)
Merged-In: I4dda41ef22422e9ef502a71ee554125d02c987f0
Change-Id: I4dda41ef22422e9ef502a71ee554125d02c987f0
parent 4b4d7ddc
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -199,10 +199,8 @@ public abstract class RemoteAnimationRunnerCompat extends IRemoteAnimationRunner
                    info.releaseAllSurfaces();
                    // Make sure that the transition leashes created are not leaked.
                    for (SurfaceControl leash : leashMap.values()) {
                        try {
                        if (leash.isValid()) {
                            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