summaryrefslogtreecommitdiff
path: root/src/com/android/camera/one/v2/photo/PictureTakerFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/camera/one/v2/photo/PictureTakerFactory.java')
-rw-r--r--src/com/android/camera/one/v2/photo/PictureTakerFactory.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/com/android/camera/one/v2/photo/PictureTakerFactory.java b/src/com/android/camera/one/v2/photo/PictureTakerFactory.java
index 68ca5a752..97dd60482 100644
--- a/src/com/android/camera/one/v2/photo/PictureTakerFactory.java
+++ b/src/com/android/camera/one/v2/photo/PictureTakerFactory.java
@@ -48,14 +48,16 @@ public final class PictureTakerFactory {
// performs the AF & AE precapture sequence.
ImageCaptureCommand flashOnCommand = new ConvergedImageCaptureCommand(
sharedImageReader, frameServer, rootRequestBuilder,
- CameraDevice.TEMPLATE_STILL_CAPTURE, CameraDevice.TEMPLATE_STILL_CAPTURE,
+ CameraDevice.TEMPLATE_PREVIEW /* repeatingRequestTemplate */,
+ CameraDevice.TEMPLATE_STILL_CAPTURE /* stillCaptureRequestTemplate */,
Arrays.asList(rootRequestBuilder), true /* ae */, true /* af */);
// When flash is OFF, wait for AF convergence, but not AE convergence
// (which can be very slow).
ImageCaptureCommand flashOffCommand = new ConvergedImageCaptureCommand(
sharedImageReader, frameServer, rootRequestBuilder,
- CameraDevice.TEMPLATE_STILL_CAPTURE, CameraDevice.TEMPLATE_STILL_CAPTURE,
+ CameraDevice.TEMPLATE_PREVIEW /* repeatingRequestTemplate */,
+ CameraDevice.TEMPLATE_STILL_CAPTURE /* stillCaptureRequestTemplate */,
Arrays.asList(rootRequestBuilder), false /* ae */, true /* af */);
// When flash is AUTO, wait for AF & AE.
@@ -63,7 +65,8 @@ public final class PictureTakerFactory {
// not necessary, then this could skip waiting for AE convergence.
ImageCaptureCommand flashAutoCommand = new ConvergedImageCaptureCommand(
sharedImageReader, frameServer, rootRequestBuilder,
- CameraDevice.TEMPLATE_STILL_CAPTURE, CameraDevice.TEMPLATE_STILL_CAPTURE,
+ CameraDevice.TEMPLATE_PREVIEW /* repeatingRequestTemplate */,
+ CameraDevice.TEMPLATE_STILL_CAPTURE /* stillCaptureRequestTemplate */,
Arrays.asList(rootRequestBuilder), true /* ae */, true /* af */);
ImageCaptureCommand flashBasedCommand = new FlashBasedPhotoCommand(logFactory, flashMode,