android autofocus fix
Adding camera.cancelAutoFocus(); some devices crashes
This commit is contained in:
parent
2d02b70c07
commit
76630c9c45
@ -219,6 +219,7 @@ implements SurfaceHolder.Callback {
|
|||||||
private AutoFocusCallback autoFocusCb = new AutoFocusCallback()
|
private AutoFocusCallback autoFocusCb = new AutoFocusCallback()
|
||||||
{
|
{
|
||||||
public void onAutoFocus(boolean success, Camera camera) {
|
public void onAutoFocus(boolean success, Camera camera) {
|
||||||
|
camera.cancelAutoFocus();
|
||||||
autoFocusHandler.postDelayed(doAutoFocus, autoFocusInterval);
|
autoFocusHandler.postDelayed(doAutoFocus, autoFocusInterval);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user