am e8f77e69: am 244f8c26: Fix 2083478: Camera needs an auto-focus cancel API

Merge commit 'e8f77e69c095ff029c114159d8ae7ecb3b10d762'

* commit 'e8f77e69c095ff029c114159d8ae7ecb3b10d762':
  Fix 2083478: Camera needs an auto-focus cancel API
This commit is contained in:
Chih-Chung Chang
2009-09-16 23:57:30 -07:00
committed by Android Git Automerger
11 changed files with 94 additions and 3 deletions

View File

@@ -382,6 +382,20 @@ public class Camera {
}
private native final void native_autoFocus();
/**
* Cancels auto-focus function. If the auto-focus is still in progress,
* this function will cancel it. Whether the auto-focus is in progress
* or not, this function will return the focus position to the default.
* If the camera does not support auto-focus, this is a no-op.
* @hide
*/
public final void cancelAutoFocus()
{
mAutoFocusCallback = null;
native_cancelAutoFocus();
}
private native final void native_cancelAutoFocus();
/**
* An interface which contains a callback for the shutter closing after taking a picture.
*/
@@ -1338,5 +1352,3 @@ public class Camera {
}
};
}