// in theory we should only ever get one call to onAutoFocus(), but some Samsung phones at least can call the callback multiple times
// see http://stackoverflow.com/questions/36316195/take-picture-fails-on-samsung-phones
// needed to fix problem on Samsung S7 with flash auto/on and continuous picture focus where it would claim failed to take picture even though it'd succeeded,
// because we repeatedly call takePicture(), and the subsequent ones cause a runtime exception
// update: also the done_autofocus flag is needed in case we had an autofocus timeout, see above
if(!done_autofocus){
done_autofocus=true;
cb.onAutoFocus(success);
@@ -1648,8 +1667,11 @@ public class CameraController1 extends CameraController {