From 8d78756c160bda736cccef9ca1a6e2d6a159ac42 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Fri, 29 May 2009 15:02:55 -0700 Subject: [PATCH] Fix the build. --- api/current.xml | 494 +++++++++++++++--- .../android/gesture/GestureOverlayView.java | 21 +- 2 files changed, 446 insertions(+), 69 deletions(-) diff --git a/api/current.xml b/api/current.xml index c67c9c4218597..f572a4d23e942 100644 --- a/api/current.xml +++ b/api/current.xml @@ -46404,10 +46404,75 @@ > - + + + + + + + + + + + + + + + + + + + + + + - - + + - + + - - - - - - - @@ -47245,6 +47296,259 @@ > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + = GestureStroke.TOUCH_TOLERANCE || dy >= GestureStroke.TOUCH_TOLERANCE) { areaToRefresh = mInvalidRect; @@ -538,16 +539,16 @@ public class GestureOverlayView extends FrameLayout { final int border = mInvalidateExtraBorder; areaToRefresh.set((int) mCurveEndX - border, (int) mCurveEndY - border, (int) mCurveEndX + border, (int) mCurveEndY + border); - + float cX = mCurveEndX = (x + previousX) / 2; float cY = mCurveEndY = (y + previousY) / 2; mPath.quadTo(previousX, previousY, cX, cY); - + // union with the control point of the new curve areaToRefresh.union((int) previousX - border, (int) previousY - border, (int) previousX + border, (int) previousY + border); - + // union with the end point of the new curve areaToRefresh.union((int) cX - border, (int) cY - border, (int) cX + border, (int) cY + border); @@ -618,7 +619,7 @@ public class GestureOverlayView extends FrameLayout { cancelGesture(event); } - mStrokeBuffer.clear(); + mStrokeBuffer.clear(); mIsGesturing = false; } @@ -678,7 +679,7 @@ public class GestureOverlayView extends FrameLayout { setPaintAlpha(255); } - invalidate(); + invalidate(); } }