Fix regression: taps were not sent to wallpaper

Change-Id: I2114cf8161c7a3b0fa6849f15e5a8e4bd45dbabb
This commit is contained in:
Michael Jurka
2011-08-09 15:00:48 -07:00
parent cddd8d3cad
commit d771c96e5d
4 changed files with 22 additions and 11 deletions
+2 -5
View File
@@ -1138,7 +1138,7 @@ public abstract class PagedView extends ViewGroup {
snapToDestination();
}
} else {
onWallpaperTap(ev);
onUnhandledTap(ev);
}
mTouchState = TOUCH_STATE_REST;
mActivePointerId = INVALID_POINTER;
@@ -1222,12 +1222,9 @@ public abstract class PagedView extends ViewGroup {
mVelocityTracker.clear();
}
}
if (mTouchState == TOUCH_STATE_REST) {
onWallpaperTap(ev);
}
}
protected void onWallpaperTap(MotionEvent ev) {}
protected void onUnhandledTap(MotionEvent ev) {}
@Override
public void requestChildFocus(View child, View focused) {