summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ui/FaceView.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/camera/ui/FaceView.java')
-rw-r--r--src/com/android/camera/ui/FaceView.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/camera/ui/FaceView.java b/src/com/android/camera/ui/FaceView.java
index 2b76255..85dd9bd 100644
--- a/src/com/android/camera/ui/FaceView.java
+++ b/src/com/android/camera/ui/FaceView.java
@@ -34,6 +34,7 @@ public class FaceView extends View {
private final boolean LOGV = false;
private int mDisplayOrientation;
private boolean mMirror;
+ private boolean mPause;
private Matrix mMatrix = new Matrix();
private RectF mRect = new RectF();
private Face[] mFaces;
@@ -46,6 +47,7 @@ public class FaceView extends View {
public void setFaces(Face[] faces) {
if (LOGV) Log.v(TAG, "Num of faces=" + faces.length);
+ if (mPause) return;
mFaces = faces;
invalidate();
}
@@ -69,6 +71,14 @@ public class FaceView extends View {
invalidate();
}
+ public void pause() {
+ mPause = true;
+ }
+
+ public void resume() {
+ mPause = false;
+ }
+
private void dumpRect(RectF rect, String msg) {
Log.v(TAG, msg + "=(" + rect.left + "," + rect.top
+ "," + rect.right + "," + rect.bottom + ")");