summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/CustomizePagedView.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/launcher2/CustomizePagedView.java')
-rw-r--r--src/com/android/launcher2/CustomizePagedView.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/launcher2/CustomizePagedView.java b/src/com/android/launcher2/CustomizePagedView.java
index 0b874bc11..6a563f28b 100644
--- a/src/com/android/launcher2/CustomizePagedView.java
+++ b/src/com/android/launcher2/CustomizePagedView.java
@@ -492,12 +492,13 @@ public class CustomizePagedView extends PagedViewWithDraggableItems
}
protected boolean beginDragging(View v) {
+ if (!v.isInTouchMode()) return false;
+ if (!super.beginDragging(v)) return false;
+
// End the current choice mode before we start dragging anything
if (isChoiceMode(CHOICE_MODE_SINGLE)) {
endChoiceMode();
}
- super.beginDragging(v);
-
boolean result = false;
switch (mCustomizationType) {
case WidgetCustomization: {