rootBuilder.withResponseListener(
new TimestampResponseListener(globalTimestampCallback));
+ // TODO Change AE mode depending on flash mode.
+ rootBuilder.withParam(CaptureRequest.CONTROL_AE_MODE, CaptureRequest
+ .CONTROL_AE_MODE_ON);
+
rootBuilder.withStream(zslImageStream);
- rootBuilder.withResponseListener(
- new MetadataResponseListener<Integer>(
- CaptureResult.CONTROL_AF_STATE, new FilteredUpdatable<>(afState)));
+ rootBuilder.withResponseListener(new TotalCaptureResultResponseListener
+ (metadataCallback));
Pollable<Rect> cropRegion = new ZoomedCropRegion(mCameraCharacteristics, zoomState);
rootBuilder.withParam(CaptureRequest.SCALER_CROP_REGION, cropRegion);