summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamera Software Integration <camswint@localhost>2016-12-11 04:21:53 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-12-11 04:21:53 -0800
commit226050b27d2c7355993a8fff493e17084278d1ea (patch)
tree10c182f7842cfdc7efdef6e6f63fcc00002af684
parentec2f20ee09c827a603227ad4b4be6a59346542cc (diff)
parent2f936e251c8e76d89b908041d0d1366e3bac576a (diff)
downloadandroid_packages_apps_Snap-226050b27d2c7355993a8fff493e17084278d1ea.tar.gz
android_packages_apps_Snap-226050b27d2c7355993a8fff493e17084278d1ea.tar.bz2
android_packages_apps_Snap-226050b27d2c7355993a8fff493e17084278d1ea.zip
Merge "SnapdragonCamera: Path should be reseted in onLayout method" into camera.lnx.1.0-dev.1.0
-rw-r--r--src/com/android/camera/ui/ProMode.java2
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);