android autofocus fix

Adding camera.cancelAutoFocus(); some devices crashes
This commit is contained in:
PaoloMessina 2015-01-21 14:26:33 +01:00
parent 2d02b70c07
commit 76630c9c45

View File

@ -219,6 +219,7 @@ implements SurfaceHolder.Callback {
private AutoFocusCallback autoFocusCb = new AutoFocusCallback()
{
public void onAutoFocus(boolean success, Camera camera) {
camera.cancelAutoFocus();
autoFocusHandler.postDelayed(doAutoFocus, autoFocusInterval);
}
};