Bug:
17587491
- If a single region with zero weight is set, revert to default
metering region rather than attempting to set a null to
avoid setParameters failure.
Change-Id: Iccd4d53d5a2134a9d744eafb731f464b653a154d
}
}
+ if (meteringRectangleList.size() == 0) {
+ Log.w(TAG, "Only received metering rectangles with weight 0.");
+ return Arrays.asList(ParameterUtils.CAMERA_AREA_DEFAULT);
+ }
+
// Ignore any regions beyond our maximum supported count
int countMeteringAreas =
Math.min(maxNumMeteringAreas, meteringRectangleList.size());