Manage onAutoFocus Android
Manage onAutoFocus Android
This commit is contained in:
parent
7ec413e5bc
commit
633b5f7b54
@ -294,8 +294,12 @@ 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();
|
try{
|
||||||
autoFocusHandler.postDelayed(doAutoFocus, autoFocusInterval);
|
camera.cancelAutoFocus();
|
||||||
|
autoFocusHandler.postDelayed(doAutoFocus, autoFocusInterval);
|
||||||
|
}catch(Exception e){
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user