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

Commit ad7d5d34 authored by Evan Rosky's avatar Evan Rosky
Browse files

Use the correct TransitionINfo when creating recent leashes

Was using the wrong info which caused a crash.

Bug: 208925002
Test: launch portrait activity, go to recents, launch landscape-only activity.
Change-Id: I48153f5eda8d027dd9126fe9d7136247959d3e35
parent 94341546
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -270,7 +270,7 @@ public class RemoteTransitionCompat implements Parcelable {
                mOpeningLeashes.add(openingTasks.get(i).getLeash());
                mOpeningLeashes.add(openingTasks.get(i).getLeash());
                // We are receiving new opening tasks, so convert to onTasksAppeared.
                // We are receiving new opening tasks, so convert to onTasksAppeared.
                final RemoteAnimationTargetCompat target = new RemoteAnimationTargetCompat(
                final RemoteAnimationTargetCompat target = new RemoteAnimationTargetCompat(
                        openingTasks.get(i), layer, mInfo, t);
                        openingTasks.get(i), layer, info, t);
                mLeashMap.put(mOpeningLeashes.get(i), target.leash.mSurfaceControl);
                mLeashMap.put(mOpeningLeashes.get(i), target.leash.mSurfaceControl);
                t.reparent(target.leash.mSurfaceControl, mInfo.getRootLeash());
                t.reparent(target.leash.mSurfaceControl, mInfo.getRootLeash());
                t.setLayer(target.leash.mSurfaceControl, layer);
                t.setLayer(target.leash.mSurfaceControl, layer);