OSDN Git Service

Merge "Implement callbacks for focus indicator on zsl" into ub-camera-haleakala
authorPuneet Lall <puneetl@google.com>
Sat, 20 Dec 2014 00:12:16 +0000 (00:12 +0000)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Sat, 20 Dec 2014 00:12:16 +0000 (00:12 +0000)
1  2 
src/com/android/camera/one/v2/ZslOneCameraFactory.java

@@@ -125,15 -124,10 +124,14 @@@ public class ZslOneCameraFactory 
              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);