diff options
Diffstat (limited to 'src/com/android/launcher3/AppsContainerRecyclerView.java')
-rw-r--r-- | src/com/android/launcher3/AppsContainerRecyclerView.java | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/com/android/launcher3/AppsContainerRecyclerView.java b/src/com/android/launcher3/AppsContainerRecyclerView.java index bb2aeb096..16244ee35 100644 --- a/src/com/android/launcher3/AppsContainerRecyclerView.java +++ b/src/com/android/launcher3/AppsContainerRecyclerView.java @@ -196,21 +196,6 @@ public class AppsContainerRecyclerView extends RecyclerView } break; case MotionEvent.ACTION_UP: - ViewConfiguration viewConfig = ViewConfiguration.get(getContext()); - float dx = ev.getX() - mDownX; - float dy = ev.getY() - mDownY; - float distance = (float) Math.sqrt(dx * dx + dy * dy); - if (distance < viewConfig.getScaledTouchSlop()) { - Rect backgroundPadding = new Rect(); - getBackground().getPadding(backgroundPadding); - boolean isOutsideBounds = ev.getX() < backgroundPadding.left || - ev.getX() > (getWidth() - backgroundPadding.right); - if (isOutsideBounds) { - Launcher launcher = (Launcher) getContext(); - launcher.showWorkspace(true); - } - } - // Fall through case MotionEvent.ACTION_CANCEL: mDraggingFastScroller = false; animateFastScrollerVisibility(false); |