Merge "Camera: Avoid NPE when extension results are not supported" into tm-d1-dev am: 8f42b2f8d6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19451689 Change-Id: I7d641cea03f9f35889d0ebdcf66e9bf7a0f35609 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1693,8 +1693,10 @@ public final class CameraExtensionSessionImpl extends CameraExtensionSession {
|
||||
((i != idx) || notifyCurrentIndex)) {
|
||||
TotalCaptureResult result = previewMap.valueAt(i).second;
|
||||
Long timestamp = result.get(CaptureResult.SENSOR_TIMESTAMP);
|
||||
mCaptureResultHandler.onCaptureCompleted(timestamp,
|
||||
initializeFilteredResults(result));
|
||||
if (mCaptureResultHandler != null) {
|
||||
mCaptureResultHandler.onCaptureCompleted(timestamp,
|
||||
initializeFilteredResults(result));
|
||||
}
|
||||
|
||||
Log.w(TAG, "Preview frame drop with timestamp: " + previewMap.keyAt(i));
|
||||
final long ident = Binder.clearCallingIdentity();
|
||||
|
||||
Reference in New Issue
Block a user