summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2010-11-15 15:28:24 -0800
committerWinson Chung <winsonc@google.com>2010-11-15 20:37:51 -0800
commit4f9e107a110fbdb403fcf3e4fbc70e02272f0b5c (patch)
treedf91beb4decc88987069647d73976dbc3773b846 /src
parent67f7f18203b2ada5e8d5eea771f73c6448af6d93 (diff)
downloadandroid_packages_apps_Trebuchet-4f9e107a110fbdb403fcf3e4fbc70e02272f0b5c.tar.gz
android_packages_apps_Trebuchet-4f9e107a110fbdb403fcf3e4fbc70e02272f0b5c.tar.bz2
android_packages_apps_Trebuchet-4f9e107a110fbdb403fcf3e4fbc70e02272f0b5c.zip
Fixing typo with previous change. Should not handle click when snapping to page.
Change-Id: I1a02e0bb7bff1aa6b16e4dd8959525da6727e59c
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher2/CustomizePagedView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher2/CustomizePagedView.java b/src/com/android/launcher2/CustomizePagedView.java
index a0e3528ec..6dfa4e535 100644
--- a/src/com/android/launcher2/CustomizePagedView.java
+++ b/src/com/android/launcher2/CustomizePagedView.java
@@ -306,7 +306,7 @@ public class CustomizePagedView extends PagedView
// Return early if this is not initiated from a touch
if (!v.isInTouchMode()) return;
// Return early if we are still animating the pages
- if (mNextPage == INVALID_PAGE) return;
+ if (mNextPage != INVALID_PAGE) return;
// On certain pages, we allow single tap to mark items as selected so that they can be
// dropped onto the mini workspaces
@@ -372,7 +372,7 @@ public class CustomizePagedView extends PagedView
// Return early if this is not initiated from a touch
if (!v.isInTouchMode()) return false;
// Return early if we are still animating the pages
- if (mNextPage == INVALID_PAGE) return false;
+ if (mNextPage != INVALID_PAGE) return false;
// End the current choice mode before we start dragging anything
if (isChoiceMode(CHOICE_MODE_SINGLE)) {