|
|
|
@ -87,8 +87,13 @@ public class Full2PictureRecorder extends FullPictureRecorder |
|
|
|
|
public void onCaptureCompleted(@NonNull ActionHolder holder, |
|
|
|
|
@NonNull CaptureRequest request, |
|
|
|
|
@NonNull TotalCaptureResult result) { |
|
|
|
|
super.onCaptureCompleted(holder, request, result); |
|
|
|
|
try { |
|
|
|
|
super.onCaptureCompleted(holder, request, result); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
mError = e; |
|
|
|
|
dispatchResult(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (mResult.format == PictureFormat.DNG) { |
|
|
|
|
mDngCreator = new DngCreator(holder.getCharacteristics(this), result); |
|
|
|
|
mDngCreator.setOrientation(ExifHelper.getExifOrientation(mResult.rotation)); |
|
|
|
@ -96,15 +101,6 @@ public class Full2PictureRecorder extends FullPictureRecorder |
|
|
|
|
mDngCreator.setLocation(mResult.location); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
String msg = "Error"; |
|
|
|
|
if (e.getMessage() != null) { |
|
|
|
|
msg = e.getMessage(); |
|
|
|
|
} |
|
|
|
|
Log.e("onCaptureCompleted:", msg); |
|
|
|
|
mError = e; |
|
|
|
|
dispatchResult(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|