diff options
author | Winson Chung <winsonc@google.com> | 2012-03-08 12:10:40 -0800 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2012-03-08 12:11:15 -0800 |
commit | 401d3a57b9fce6703d5a8f332506af1c0027362f (patch) | |
tree | 35b1848a61fa47deec7d0d71131d9a5172ff713d | |
parent | 633f1aad55aea7afbefd8409ccfd1f693b27870b (diff) | |
download | packages_apps_trebuchet-401d3a57b9fce6703d5a8f332506af1c0027362f.zip packages_apps_trebuchet-401d3a57b9fce6703d5a8f332506af1c0027362f.tar.gz packages_apps_trebuchet-401d3a57b9fce6703d5a8f332506af1c0027362f.tar.bz2 |
Fixing issue where long pressing on an icon in a Folder without moving causes a click as the icon is still "pressed".
Change-Id: If6a3bcab79492efa8588c282e0d3e7a5b54dc785
-rw-r--r-- | src/com/android/launcher2/CheckLongPressHelper.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/launcher2/CheckLongPressHelper.java b/src/com/android/launcher2/CheckLongPressHelper.java index 3ccda26..5c3752a 100644 --- a/src/com/android/launcher2/CheckLongPressHelper.java +++ b/src/com/android/launcher2/CheckLongPressHelper.java @@ -28,6 +28,7 @@ public class CheckLongPressHelper { if ((mView.getParent() != null) && mView.hasWindowFocus() && !mHasPerformedLongPress) { if (mView.performLongClick()) { + mView.setPressed(false); mHasPerformedLongPress = true; } } |