commit | 244f8c26365a303d9dd861bd48a29a4b48578da1 | [log] [tgz] |
---|---|---|
author | Chih-Chung Chang <chihchung@google.com> | Tue Sep 15 14:51:56 2009 +0800 |
committer | Chih-Chung Chang <chihchung@google.com> | Tue Sep 15 18:29:03 2009 +0800 |
tree | 33c20568a94d606507507ec5cedf2a01eba8de58 | |
parent | 54c06152e0d9c666aec61ae5d9686d7d3327ea34 [diff] [blame] |
Fix 2083478: Camera needs an auto-focus cancel API Change-Id: I13bda991b32aee47e82b5cf9d43b3021c416a9a2
diff --git a/libs/ui/Camera.cpp b/libs/ui/Camera.cpp index 12a7725..0c6d340 100644 --- a/libs/ui/Camera.cpp +++ b/libs/ui/Camera.cpp
@@ -242,6 +242,14 @@ return c->autoFocus(); } +status_t Camera::cancelAutoFocus() +{ + LOGV("cancelAutoFocus"); + sp <ICamera> c = mCamera; + if (c == 0) return NO_INIT; + return c->cancelAutoFocus(); +} + // take a picture status_t Camera::takePicture() {