From 59b887e9929d76fb24cb9859902deb079bf2a95d Mon Sep 17 00:00:00 2001 From: Sunid Wilson Date: Thu, 5 Sep 2013 17:19:51 -0700 Subject: Camera App: FaceView: Fix for no smile drawing In case of 'no smile' indicator, center the line without any offsets. Change-Id: I3992b6be2cf20d19bdb7c9cee85691cff3ce2feb --- src/com/android/camera/ui/FaceView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/camera/ui/FaceView.java b/src/com/android/camera/ui/FaceView.java index d67b835e4..0596ce784 100644 --- a/src/com/android/camera/ui/FaceView.java +++ b/src/com/android/camera/ui/FaceView.java @@ -300,9 +300,9 @@ public class FaceView extends View if (face.mouth != null) { Log.e(TAG, "smile: " + face.getSmileDegree() + "," + face.getSmileScore()); if (face.getSmileDegree() < smile_threashold_no_smile) { - point[0] = face.mouth.x + dx; + point[0] = face.mouth.x; point[1] = face.mouth.y-delta_y +dy; - point[2] = face.mouth.x + dx; + point[2] = face.mouth.x; point[3] = face.mouth.y+delta_y + dy; mMatrix.mapPoints (point); canvas.drawLine(point[0] + dx, point[1] + dy, point[2] + -- cgit v1.2.3