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

Commit 376cde95 authored by Johannes Gallmann's avatar Johannes Gallmann
Browse files

Align window clipping logic of back-to-home to cross-task-back

Bug: 315461656
Flag: ACONFIG com.android.systemui.predictive_back_system_animations STAGING
Test: Manual, i.e. visually verifying back to home behaviour on Felix
Change-Id: I075c38fc58c56108128fdf895c62b2f626da36ad
parent 818b3ba0
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -23,8 +23,6 @@ import static com.android.launcher3.AbstractFloatingView.TYPE_REBIND_SAFE;
import static com.android.launcher3.BaseActivity.INVISIBLE_ALL;
import static com.android.launcher3.BaseActivity.INVISIBLE_BY_PENDING_FLAGS;
import static com.android.launcher3.BaseActivity.PENDING_INVISIBLE_BY_WALLPAPER_ANIMATION;
import static com.android.launcher3.LauncherPrefs.TASKBAR_PINNING;
import static com.android.launcher3.config.FeatureFlags.enableTaskbarPinning;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
@@ -301,11 +299,10 @@ public class LauncherBackAnimationController {
        mInitialTouchPos.set(backEvent.getTouchX(), backEvent.getTouchY());

        mStartRect.set(appTarget.windowConfiguration.getMaxBounds());
        if (mLauncher.getDeviceProfile().isTaskbarPresent && enableTaskbarPinning()
                && LauncherPrefs.get(mLauncher).get(TASKBAR_PINNING)) {
            int insetBottom = mStartRect.bottom - appTarget.contentInsets.bottom;
            mStartRect.set(mStartRect.left, mStartRect.top, mStartRect.right, insetBottom);
        }

        // inset bottom in case of pinned taskbar being present
        mStartRect.inset(0, 0, 0, appTarget.contentInsets.bottom);

        mLauncherTargetView = mQuickstepTransitionManager.findLauncherView(
                new RemoteAnimationTarget[]{ mBackTarget });
        setLauncherTargetViewVisible(false);