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

Commit 81c0cac4 authored by Tracy Zhou's avatar Tracy Zhou
Browse files

[Live Tile] Place the target app back above Launcher when swipe up end target is home

Test: manual
Bug: 160361464
Change-Id: Ic2b332774fe3f25f36f0bfd2b5e6cf66fb1d09dd
parent 72385839
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1059,6 +1059,7 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<?>, Q extends
        }

        if (mGestureState.getEndTarget() == HOME) {
            mTaskViewSimulator.setDrawsBelowRecents(false);
            HomeAnimationFactory homeAnimFactory = createHomeAnimationFactory(duration);
            RectFSpringAnim windowAnim = createWindowAnimationToHome(start, homeAnimFactory);
            windowAnim.addAnimatorListener(new AnimationSuccessListener() {
+4 −3
Original line number Diff line number Diff line
@@ -325,9 +325,10 @@ public class TaskViewSimulator implements TransformParams.BuilderProxy {
                .withWindowCrop(mTmpCropRect)
                .withCornerRadius(getCurrentCornerRadius());

        if (ENABLE_QUICKSTEP_LIVE_TILE.get() && mDrawsBelowRecents
                && params.getRecentsSurface() != null) {
            builder.withRelativeLayerTo(params.getRecentsSurface(), Integer.MIN_VALUE);
        if (ENABLE_QUICKSTEP_LIVE_TILE.get() && params.getRecentsSurface() != null) {
            // When relativeLayer = 0, it reverts the surfaces back to the original order.
            builder.withRelativeLayerTo(params.getRecentsSurface(),
                    mDrawsBelowRecents ? Integer.MIN_VALUE : 0);
        }
    }