Bug fix
Continuos auto focus fix for sony device
This commit is contained in:
parent
cc4343209f
commit
9d94500548
@ -307,6 +307,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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -315,7 +316,6 @@ implements SurfaceHolder.Callback {
|
|||||||
{
|
{
|
||||||
public void run() {
|
public void run() {
|
||||||
if(camera != null){
|
if(camera != null){
|
||||||
camera.cancelAutoFocus();
|
|
||||||
camera.autoFocus(autoFocusCb);
|
camera.autoFocus(autoFocusCb);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user