diff --git a/api/current.xml b/api/current.xml index f7c12e7cab13e..860cce4b9df52 100644 --- a/api/current.xml +++ b/api/current.xml @@ -49580,10 +49580,75 @@ > - + + + + + + + + + + + + + + + + + + + + + + - - + + - + + - - - - - - - @@ -50421,6 +50472,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(); } }