summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2011-08-05 15:16:34 +0800
committerWu-cheng Li <wuchengli@google.com>2011-08-05 15:47:21 +0800
commit141cf9386c6053e655ef054f499230cfafba3ff6 (patch)
treeb781d3f9886cbec13aad1c763dfad2a5dbe68c94
parentc6bf6547259e75a4fc0e3ac61ab589f456031837 (diff)
downloadLegacyCamera-141cf9386c6053e655ef054f499230cfafba3ff6.zip
LegacyCamera-141cf9386c6053e655ef054f499230cfafba3ff6.tar.gz
LegacyCamera-141cf9386c6053e655ef054f499230cfafba3ff6.tar.bz2
Fix face rectangles are not updated when the number of faces is 0.
bug:4460717 Change-Id: I41f77f7a78ba19605e29abc4a0634868f8a84510
-rw-r--r--src/com/android/camera/FaceListener.java1
1 files changed, 0 insertions, 1 deletions
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.