Passion - Maybe this will fix bug 2183130 - NPE in AllAppsView.onTouchEvent.

Looking at the code as it was on ERD11, this was mVelocity being null.
That shouldn't be possible if events are ordered correctly.  This
change makes AllAppsView a little more rigorous about which value
mTouchTracking has.  Hopefully, we can mask any underlying problems
sufficiently.  Events aren't supposed to be going out of order.
diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java
index e31fe5d..b5074b1 100644
--- a/src/com/android/launcher2/AllAppsView.java
+++ b/src/com/android/launcher2/AllAppsView.java
@@ -69,8 +69,9 @@
     /** Bit for mLocks for when there are icons being loaded. */
     private static final int LOCK_ICONS_PENDING = 1;
 
-    private static final int TRACKING_FLING = 0;
-    private static final int TRACKING_HOME = 1;
+    private static final int TRACKING_NONE = 0;
+    private static final int TRACKING_FLING = 1;
+    private static final int TRACKING_HOME = 2;
 
     private Launcher mLauncher;
     private DragController mDragController;
@@ -258,7 +259,7 @@
         case MotionEvent.ACTION_OUTSIDE:
             if (mTouchTracking == TRACKING_HOME) {
                 // TODO: highlight?
-            } else {
+            } else if (mTouchTracking == TRACKING_FLING) {
                 int rawX = (int)ev.getRawX();
                 int rawY = (int)ev.getRawY();
                 int slop;
@@ -306,7 +307,7 @@
                         mLauncher.closeAllApps(true);
                     }
                 }
-            } else {
+            } else if (mTouchTracking == TRACKING_FLING) {
                 mRollo.mState.newTouchDown = 0;
                 if (mRotateMove) {
                     mRollo.mState.newPositionX = ev.getRawY() / mDefines.SCREEN_WIDTH_PX;
@@ -330,8 +331,9 @@
                     mVelocity.recycle();
                     mVelocity = null;
                 }
-                break;
             }
+            mTouchTracking = TRACKING_NONE;
+            break;
         }
 
         return true;