commit | f86ca319c1aa5b793b797c93bc87523e0d9f74ca | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Mon Jul 13 21:38:01 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Jul 13 21:38:01 2020 +0000 |
tree | 4a65f194a7a264ea87e41611d2cc76ac6675eb63 | |
parent | e7975caf82cb0bde91c50b078c59db4d55e4716e [diff] | |
parent | f130c29882bd04f72edff0be87f560d6dbf6fb1e [diff] |
Preventing disambiguation screen when swiping up am: f130c29882 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12141303 Change-Id: I2431fadcc0365cb60e8b2b106b5488654377f725
diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/inputconsumers/OverviewWithoutFocusInputConsumer.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/inputconsumers/OverviewWithoutFocusInputConsumer.java index d972c0f..1c77a05 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/inputconsumers/OverviewWithoutFocusInputConsumer.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/inputconsumers/OverviewWithoutFocusInputConsumer.java
@@ -19,7 +19,6 @@ import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_HOME_GESTURE; import android.content.Context; -import android.content.Intent; import android.graphics.PointF; import android.view.MotionEvent; @@ -80,9 +79,7 @@ @Override public void onSwipeUp(boolean wasFling, PointF finalVelocity) { - mContext.startActivity(new Intent(Intent.ACTION_MAIN) - .addCategory(Intent.CATEGORY_HOME) - .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)); + mContext.startActivity(mGestureState.getHomeIntent()); ActiveGestureLog.INSTANCE.addLog("startQuickstep"); BaseActivity activity = BaseDraggingActivity.fromContext(mContext); int pageIndex = -1; // This number doesn't reflect workspace page index.