summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/CheckLongPressHelper.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/launcher3/CheckLongPressHelper.java')
-rw-r--r--src/com/android/launcher3/CheckLongPressHelper.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/launcher3/CheckLongPressHelper.java b/src/com/android/launcher3/CheckLongPressHelper.java
index 81149793d..1712acdb7 100644
--- a/src/com/android/launcher3/CheckLongPressHelper.java
+++ b/src/com/android/launcher3/CheckLongPressHelper.java
@@ -25,6 +25,8 @@ public class CheckLongPressHelper {
class CheckForLongPress implements Runnable {
public void run() {
+ if (!mView.isLongClickable()) return;
+
if ((mView.getParent() != null) && mView.hasWindowFocus()
&& !mHasPerformedLongPress) {
if (mView.performLongClick()) {