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

Commit 0ed60425 authored by Sunny Goyal's avatar Sunny Goyal Committed by Automerger Merge Worker
Browse files

Preventing disambiguation screen when swiping up am: f130c298

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12141303

Change-Id: I77b4149f114788606d1b249adf2e1bfe82de65af
parents 9824cf53 f130c298
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -19,7 +19,6 @@ import static com.android.launcher3.logging.StatsLogManager.LAUNCHER_STATE_HOME;
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_HOME_GESTURE;
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_HOME_GESTURE;


import android.content.Context;
import android.content.Context;
import android.content.Intent;
import android.graphics.PointF;
import android.graphics.PointF;
import android.view.MotionEvent;
import android.view.MotionEvent;


@@ -80,9 +79,7 @@ public class OverviewWithoutFocusInputConsumer implements InputConsumer,


    @Override
    @Override
    public void onSwipeUp(boolean wasFling, PointF finalVelocity) {
    public void onSwipeUp(boolean wasFling, PointF finalVelocity) {
        mContext.startActivity(new Intent(Intent.ACTION_MAIN)
        mContext.startActivity(mGestureState.getHomeIntent());
                .addCategory(Intent.CATEGORY_HOME)
                .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
        ActiveGestureLog.INSTANCE.addLog("startQuickstep");
        ActiveGestureLog.INSTANCE.addLog("startQuickstep");
        BaseActivity activity = BaseDraggingActivity.fromContext(mContext);
        BaseActivity activity = BaseDraggingActivity.fromContext(mContext);
        int pageIndex = -1; // This number doesn't reflect workspace page index.
        int pageIndex = -1; // This number doesn't reflect workspace page index.