Manage onAutoFocus Android

Manage onAutoFocus Android
This commit is contained in:
PaoloMessina 2015-02-03 10:43:31 +01:00
parent 7ec413e5bc
commit 633b5f7b54

View File

@ -294,8 +294,12 @@ implements SurfaceHolder.Callback {
private AutoFocusCallback autoFocusCb = new AutoFocusCallback()
{
public void onAutoFocus(boolean success, Camera camera) {
camera.cancelAutoFocus();
autoFocusHandler.postDelayed(doAutoFocus, autoFocusInterval);
try{
camera.cancelAutoFocus();
autoFocusHandler.postDelayed(doAutoFocus, autoFocusInterval);
}catch(Exception e){
}
}
};