commit | 00900eb35473530a5fc77f7bd3ac306b6dcf19cb | [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 | 50ef4d7f5da62be60d0748dba6ed6713c61d6443 | |
parent | f5733b2938151fda955f01d9dc3ad15f7292604d [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() {