Merge "Camera: Avoid NPE when extension results are not supported" into tm-d1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8f42b2f8d6
@@ -1693,8 +1693,10 @@ public final class CameraExtensionSessionImpl extends CameraExtensionSession {
|
|||||||
((i != idx) || notifyCurrentIndex)) {
|
((i != idx) || notifyCurrentIndex)) {
|
||||||
TotalCaptureResult result = previewMap.valueAt(i).second;
|
TotalCaptureResult result = previewMap.valueAt(i).second;
|
||||||
Long timestamp = result.get(CaptureResult.SENSOR_TIMESTAMP);
|
Long timestamp = result.get(CaptureResult.SENSOR_TIMESTAMP);
|
||||||
|
if (mCaptureResultHandler != null) {
|
||||||
mCaptureResultHandler.onCaptureCompleted(timestamp,
|
mCaptureResultHandler.onCaptureCompleted(timestamp,
|
||||||
initializeFilteredResults(result));
|
initializeFilteredResults(result));
|
||||||
|
}
|
||||||
|
|
||||||
Log.w(TAG, "Preview frame drop with timestamp: " + previewMap.keyAt(i));
|
Log.w(TAG, "Preview frame drop with timestamp: " + previewMap.keyAt(i));
|
||||||
final long ident = Binder.clearCallingIdentity();
|
final long ident = Binder.clearCallingIdentity();
|
||||||
|
|||||||
Reference in New Issue
Block a user