OSDN Git Service

Fixing typo with previous change. Should not handle click when snapping to page.
authorWinson Chung <winsonc@google.com>
Mon, 15 Nov 2010 23:28:24 +0000 (15:28 -0800)
committerWinson Chung <winsonc@google.com>
Tue, 16 Nov 2010 04:37:51 +0000 (20:37 -0800)
Change-Id: I1a02e0bb7bff1aa6b16e4dd8959525da6727e59c

src/com/android/launcher2/CustomizePagedView.java

index a0e3528..6dfa4e5 100644 (file)
@@ -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)) {