From 0a71b9d83fc425421d7e2105f429b01ae8fe3428 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Thu, 7 May 2015 11:14:42 -0700 Subject: [PATCH] Adding abstract methods for new RecyclerView lib. Change-Id: I50c3dfaecd79a87340ed4eeaa3195a26311062e0 --- src/com/android/launcher3/AppsContainerRecyclerView.java | 4 ++++ .../launcher3/widget/WidgetsContainerRecyclerView.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/com/android/launcher3/AppsContainerRecyclerView.java b/src/com/android/launcher3/AppsContainerRecyclerView.java index d91bceac98..7f64be2f5c 100644 --- a/src/com/android/launcher3/AppsContainerRecyclerView.java +++ b/src/com/android/launcher3/AppsContainerRecyclerView.java @@ -187,6 +187,10 @@ public class AppsContainerRecyclerView extends RecyclerView handleTouchEvent(ev); } + public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) { + // DO NOT REMOVE, NEEDED IMPLEMENTATION FOR M BUILDS + } + /** * Handles the touch event and determines whether to show the fast scroller (or updates it if * it is already showing). diff --git a/src/com/android/launcher3/widget/WidgetsContainerRecyclerView.java b/src/com/android/launcher3/widget/WidgetsContainerRecyclerView.java index 80e13bcf25..65694bfaa0 100644 --- a/src/com/android/launcher3/widget/WidgetsContainerRecyclerView.java +++ b/src/com/android/launcher3/widget/WidgetsContainerRecyclerView.java @@ -87,4 +87,8 @@ public class WidgetsContainerRecyclerView extends RecyclerView public void onTouchEvent(RecyclerView rv, MotionEvent ev) { // Do nothing. } + + public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) { + // DO NOT REMOVE, NEEDED IMPLEMENTATION FOR M BUILDS + } } \ No newline at end of file