Skip to content

Commit

Permalink
Merge pull request #5887 from pingwang2011/timob-16199
Browse files Browse the repository at this point in the history
timob-16199: Android: camera with overlay takePicture() firing success function multiple times
  • Loading branch information
hieupham007 committed Jul 7, 2014
2 parents ffbfce6 + 40f61d6 commit a07aa65
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ public void onAutoFocus(boolean success, Camera camera)
if (!success) {
Log.w(TAG, "Unable to focus.");
}
camera.cancelAutoFocus();
}
};
camera.autoFocus(focusCallback);
Expand Down

0 comments on commit a07aa65

Please sign in to comment.