diff options
-rw-r--r-- | src/com/android/camera/ui/ProMode.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/camera/ui/ProMode.java b/src/com/android/camera/ui/ProMode.java index 9f7d576dc..dbd89ec58 100644 --- a/src/com/android/camera/ui/ProMode.java +++ b/src/com/android/camera/ui/ProMode.java @@ -156,12 +156,14 @@ public class ProMode extends View { super.onLayout(changed, left, top, right, bottom); mWidth = right - left; mHeight = bottom - top; + mCurveLeft = mWidth / 10; mCurveRight = mWidth - mCurveLeft; mCurveHeight = mWidth / 7; mCurveY = (int) (mHeight * 0.67); float cx = (mCurveLeft + mCurveRight) / 2; + mCurvePath.reset(); mCurvePath.moveTo(mCurveLeft, mCurveY); mCurvePath.quadTo(cx, mCurveY - mCurveHeight, mCurveRight, mCurveY); mCurveMeasure = new PathMeasure(mCurvePath, false); |