From 141cf9386c6053e655ef054f499230cfafba3ff6 Mon Sep 17 00:00:00 2001 From: Wu-cheng Li Date: Fri, 5 Aug 2011 15:16:34 +0800 Subject: Fix face rectangles are not updated when the number of faces is 0. bug:4460717 Change-Id: I41f77f7a78ba19605e29abc4a0634868f8a84510 --- src/com/android/camera/FaceListener.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/com/android/camera/FaceListener.java b/src/com/android/camera/FaceListener.java index 5b90523..3b1134e 100644 --- a/src/com/android/camera/FaceListener.java +++ b/src/com/android/camera/FaceListener.java @@ -42,7 +42,6 @@ class FaceListener implements android.hardware.Camera.FaceDetectionListener { @Override public void onFaceDetection(Face[] faces, android.hardware.Camera camera) { - if (faces.length == 0) return; if (LOGV) Log.v(TAG, "Num of faces=" + faces.length); // Rotate the coordinates if necessary. -- cgit v1.1