commit | 90e75d1f90b85e11f6905966ea28d59916935c68 | [log] [tgz] |
---|---|---|
author | Alan Newberger <alann@google.com> | Sun Oct 05 12:41:11 2014 -0700 |
committer | Alan Newberger <alann@google.com> | Sun Oct 05 12:41:11 2014 -0700 |
tree | 282b4340217c201ea83bca2c1fafaabd5b043b2a | |
parent | 698997b9ef47f215350f03c0289f291846cd3604 [diff] |
Check isZoomSupported before any zoom ratio calculations. Per API doc, isZoomeSupported should be checked before calling getZoomRatios or getMaxZoom. Moving zoom calculation into isZoomSupported check fixed crash in front camera with no zoom support, where a HAL/fwk returns a null list of zoom ratios. Bug: 17863266 Change-Id: I80b5f7a431e7bbe4d50e5d062628e38eda3fd0a6