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

Commit b09d25b2 authored by Vadim Tryshev's avatar Vadim Tryshev
Browse files

Fade away half-screen assistant on swipe-to-recents gesture.

Half-screen assistant is not in task stack, and will be faded away.

Workspace-to-recents case with half-screen assistant needs more work
after we decide whether we should swipe to the workspace preview or to
the first task.

Bug: 70789568
Test: Manual: swipe a normal app to Recents; swipe an app with a
half-screen assistant on top of it to Recents.

Change-Id: I6e3acc2b94bb3b56d6590a72073d37a1771a1da5
parent 9dd404b3
Loading
Loading
Loading
Loading
+236 B (114 KiB)

File changed.

No diff preview for this file type.

+7 −2
Original line number Diff line number Diff line
@@ -563,8 +563,13 @@ public class WindowTransformSwipeHandler extends BaseSwipeInteractionHandler {
                for (RemoteAnimationTargetCompat app : mRecentsAnimationWrapper.targets) {
                    if (app.mode == MODE_CLOSING) {
                        transaction.setMatrix(app.leash, mTmpMatrix)
                                .setWindowCrop(app.leash, mClipRect)
                                .show(app.leash);
                                .setWindowCrop(app.leash, mClipRect);

                        if (app.isNotInRecents) {
                            transaction.setAlpha(app.leash, 1 - shift);
                        }

                        transaction.show(app.leash);
                    }
                }
                transaction.apply();