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

Commit 90b3c471 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Inherit packageName/windowAnimations on TaskSnapshotSurface

Such that when the starting window gets picked for the animation,
we can resolve the animation as well.

Test: Long press home, "Home settings", press home, repeat
Test: go/wm-smoke
Change-Id: I81cd022ccd13a720f7ba7a037cb686126cb36722
Fixes: 77688444
parent ddeaefb5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -173,6 +173,8 @@ class TaskSnapshotSurface implements StartingSurface {
            windowFlags = topFullscreenWindow.getAttrs().flags;
            windowPrivateFlags = topFullscreenWindow.getAttrs().privateFlags;

            layoutParams.packageName = mainWindow.getAttrs().packageName;
            layoutParams.windowAnimations = mainWindow.getAttrs().windowAnimations;
            layoutParams.dimAmount = mainWindow.getAttrs().dimAmount;
            layoutParams.type = TYPE_APPLICATION_STARTING;
            layoutParams.format = snapshot.getSnapshot().getFormat();