From 6fc380def6f005e1e4fd37df2f6f187fa5ab5435 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Wed, 15 Nov 2017 10:02:04 -0800 Subject: [PATCH] Fixing wrong velocity being used for fling Change-Id: I0e8a9563d4148ed9f6035a441ab045c7f4f8a736 --- .../src/com/android/quickstep/TouchInteractionService.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/quickstep/src/com/android/quickstep/TouchInteractionService.java b/quickstep/src/com/android/quickstep/TouchInteractionService.java index adaa78533b..db9cc15601 100644 --- a/quickstep/src/com/android/quickstep/TouchInteractionService.java +++ b/quickstep/src/com/android/quickstep/TouchInteractionService.java @@ -42,12 +42,10 @@ import android.view.VelocityTracker; import android.view.ViewConfiguration; import android.view.WindowManager; -import com.android.launcher3.LauncherAppState; import com.android.launcher3.R; import com.android.systemui.shared.recents.IOverviewProxy; import com.android.systemui.shared.recents.ISystemUiProxy; import com.android.systemui.shared.recents.model.RecentsTaskLoadPlan; -import com.android.systemui.shared.recents.model.RecentsTaskLoadPlan.Options; import com.android.systemui.shared.recents.model.RecentsTaskLoader; import com.android.systemui.shared.system.ActivityManagerWrapper; import com.android.systemui.shared.system.BackgroundExecutor; @@ -235,7 +233,7 @@ public class TouchInteractionService extends Service { mVelocityTracker.computeCurrentVelocity(1000, ViewConfiguration.get(this).getScaledMaximumFlingVelocity()); - mInteractionHandler.endTouch(mVelocityTracker.getXVelocity(mActivePointerId)); + mInteractionHandler.endTouch(mVelocityTracker.getYVelocity(mActivePointerId)); mInteractionHandler = null; } mVelocityTracker.recycle();