summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ui
diff options
context:
space:
mode:
authorChih-yu Huang <akahuang@google.com>2011-10-21 12:01:01 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-10-21 12:01:01 -0700
commit83abe885d9809c1404a1f7e17537ee9a9c61fb57 (patch)
tree17c1cd5cb1f7c82ea4ab7b8bfaed9718d92ca9b9 /src/com/android/camera/ui
parentf5ba96adb5d72f9cac77ff21614f54e0d2bbb795 (diff)
parent048edf2ef22607b85bc4b062e2af71804f5b3530 (diff)
downloadLegacyCamera-83abe885d9809c1404a1f7e17537ee9a9c61fb57.zip
LegacyCamera-83abe885d9809c1404a1f7e17537ee9a9c61fb57.tar.gz
LegacyCamera-83abe885d9809c1404a1f7e17537ee9a9c61fb57.tar.bz2
am 048edf2e: Fix focus area in front camera.
* commit '048edf2ef22607b85bc4b062e2af71804f5b3530': Fix focus area in front camera.
Diffstat (limited to 'src/com/android/camera/ui')
-rw-r--r--src/com/android/camera/ui/FaceView.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/com/android/camera/ui/FaceView.java b/src/com/android/camera/ui/FaceView.java
index 5724d9c..ed59682 100644
--- a/src/com/android/camera/ui/FaceView.java
+++ b/src/com/android/camera/ui/FaceView.java
@@ -117,17 +117,11 @@ public class FaceView extends View implements FocusIndicator, Rotatable {
mPause = false;
}
- private void dumpRect(RectF rect, String msg) {
- Log.v(TAG, msg + "=(" + rect.left + "," + rect.top
- + "," + rect.right + "," + rect.bottom + ")");
- }
-
@Override
protected void onDraw(Canvas canvas) {
if (mFaces != null && mFaces.length > 0) {
// Prepare the matrix.
- Util.prepareMatrix(mMatrix, mMirror, mDisplayOrientation, getWidth(),
- getHeight());
+ Util.prepareMatrix(mMatrix, mMirror, mDisplayOrientation, getWidth(), getHeight());
// Focus indicator is directional. Rotate the matrix and the canvas
// so it looks correctly in all orientations.
@@ -137,9 +131,9 @@ public class FaceView extends View implements FocusIndicator, Rotatable {
for (int i = 0; i < mFaces.length; i++) {
// Transform the coordinates.
mRect.set(mFaces[i].rect);
- if (LOGV) dumpRect(mRect, "Original rect");
+ if (LOGV) Util.dumpRect(mRect, "Original rect");
mMatrix.mapRect(mRect);
- if (LOGV) dumpRect(mRect, "Transformed rect");
+ if (LOGV) Util.dumpRect(mRect, "Transformed rect");
mFaceIndicator.setBounds(Math.round(mRect.left), Math.round(mRect.top),
Math.round(mRect.right), Math.round(mRect.bottom));