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

Commit 84d9c425 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Removing some unused AppWindowAnimationHelper dependencies

Change-Id: I594853696c63dc6c22d22cab2faab0ed7529b594
parent 0dbbd895
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -49,7 +49,6 @@ import com.android.launcher3.anim.AnimatorPlaybackController;
import com.android.launcher3.anim.Interpolators;
import com.android.launcher3.anim.SpringAnimationBuilder;
import com.android.launcher3.states.StateAnimationConfig;
import com.android.quickstep.util.AppWindowAnimationHelper;
import com.android.quickstep.views.RecentsView;
import com.android.quickstep.views.TaskView;
import com.android.systemui.shared.system.RemoteAnimationTargetCompat;
@@ -86,11 +85,8 @@ public final class LauncherAppTransitionManagerImpl extends QuickstepAppTransiti
        boolean skipLauncherChanges = !launcherClosing;

        TaskView taskView = findTaskViewToLaunch(mLauncher, v, appTargets);

        AppWindowAnimationHelper helper =
            new AppWindowAnimationHelper(recentsView.getPagedViewOrientedState(), mLauncher);
        Animator recentsAnimator = getRecentsWindowAnimator(taskView, skipLauncherChanges,
                appTargets, wallpaperTargets, mLauncher.getDepthController(), helper);
                appTargets, wallpaperTargets, mLauncher.getDepthController());
        anim.play(recentsAnimator.setDuration(RECENTS_LAUNCH_DURATION));

        Animator childStateAnimation = null;
@@ -98,7 +94,7 @@ public final class LauncherAppTransitionManagerImpl extends QuickstepAppTransiti
        Animator launcherAnim;
        final AnimatorListenerAdapter windowAnimEndListener;
        if (launcherClosing) {
            launcherAnim = recentsView.createAdjacentPageAnimForTaskLaunch(taskView, helper);
            launcherAnim = recentsView.createAdjacentPageAnimForTaskLaunch(taskView);
            launcherAnim.setInterpolator(Interpolators.TOUCH_RESPONSE_INTERPOLATOR);
            launcherAnim.setDuration(RECENTS_LAUNCH_DURATION);

+1 −1
Original line number Diff line number Diff line
@@ -156,7 +156,7 @@ final class AppToOverviewAnimationProvider<T extends BaseDraggingActivity> exten
        mActivityInterface.getSwipeUpDestinationAndLength(mActivity.getDeviceProfile(), mActivity,
                targetRect);
        clipHelper.updateTargetRect(targetRect);
        clipHelper.prepareAnimation(mActivity.getDeviceProfile(), false /* isOpening */);
        clipHelper.prepareAnimation(mActivity.getDeviceProfile());

        TransformParams params = new TransformParams()
                .setSyncTransactionApplier(new SyncRtSurfaceTransactionApplierCompat(rootView));
+1 −1
Original line number Diff line number Diff line
@@ -276,7 +276,7 @@ public abstract class BaseSwipeUpHandler<T extends BaseDraggingActivity, Q exten
            updateSource(overviewStackBounds, runningTaskTarget);
        }

        mAppWindowAnimationHelper.prepareAnimation(dp, false /* isOpening */);
        mAppWindowAnimationHelper.prepareAnimation(dp);
        initTransitionEndpoints(dp);

        // Notify when the animation starts
+1 −1
Original line number Diff line number Diff line
@@ -479,7 +479,7 @@ public class FallbackSwipeHandler extends BaseSwipeUpHandler<RecentsActivity, Fa
        mRecentsAnimationController.enableInputConsumer();

        if (mRunningOverHome) {
            mAppWindowAnimationHelper.prepareAnimation(mDp, true);
            mAppWindowAnimationHelper.prepareAnimation(mDp);
        }
        applyTransformUnchecked();

+2 −6
Original line number Diff line number Diff line
@@ -44,7 +44,6 @@ import com.android.launcher3.util.ObjectWrapper;
import com.android.launcher3.views.BaseDragLayer;
import com.android.quickstep.fallback.FallbackRecentsView;
import com.android.quickstep.fallback.RecentsRootView;
import com.android.quickstep.util.AppWindowAnimationHelper;
import com.android.quickstep.views.TaskView;
import com.android.systemui.shared.recents.model.ThumbnailData;
import com.android.systemui.shared.system.ActivityOptionsCompat;
@@ -184,17 +183,14 @@ public final class RecentsActivity extends BaseRecentsActivity {
            RemoteAnimationTargetCompat[] wallpaperTargets) {
        AnimatorSet target = new AnimatorSet();
        boolean activityClosing = taskIsATargetWithMode(appTargets, getTaskId(), MODE_CLOSING);
        AppWindowAnimationHelper helper = new AppWindowAnimationHelper(
            mFallbackRecentsView.getPagedViewOrientedState(), this);
        Animator recentsAnimator = getRecentsWindowAnimator(taskView, !activityClosing, appTargets,
                wallpaperTargets, null /* depthController */,
                helper);
                wallpaperTargets, null /* depthController */);
        target.play(recentsAnimator.setDuration(RECENTS_LAUNCH_DURATION));

        // Found a visible recents task that matches the opening app, lets launch the app from there
        if (activityClosing) {
            Animator adjacentAnimation = mFallbackRecentsView
                    .createAdjacentPageAnimForTaskLaunch(taskView, helper);
                    .createAdjacentPageAnimForTaskLaunch(taskView);
            adjacentAnimation.setInterpolator(Interpolators.TOUCH_RESPONSE_INTERPOLATOR);
            adjacentAnimation.setDuration(RECENTS_LAUNCH_DURATION);
            adjacentAnimation.addListener(new AnimatorListenerAdapter() {
Loading