delay turning flash off at taking photos

This commit is contained in:
tibbi 2016-07-20 19:53:02 +02:00
parent 2978c399d4
commit 3f914d2590
1 changed files with 5 additions and 4 deletions

View File

@ -247,15 +247,16 @@ public class Preview extends ViewGroup implements SurfaceHolder.Callback, View.O
} }
mCanTakePicture = true; mCanTakePicture = true;
}
}, PHOTO_PREVIEW_LENGTH);
new PhotoProcessor(mActivity, mTargetUri).execute(data);
if (mIsFlashEnabled) { if (mIsFlashEnabled) {
mParameters.setFlashMode(Camera.Parameters.FLASH_MODE_OFF); mParameters.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);
mCamera.setParameters(mParameters); mCamera.setParameters(mParameters);
} }
} }
}, PHOTO_PREVIEW_LENGTH);
new PhotoProcessor(mActivity, mTargetUri).execute(data);
}
}; };
private Camera.Size getOptimalPictureSize() { private Camera.Size getOptimalPictureSize() {