DescriptionImage Capture: catch NoSuchFieldError if reading CONTROL_{AE,AWB}_LOCK_AVAILABLE where not available
This CL adds a catch-ignore NoSuchFieldError exception, this
is thrown reading the said fields in APIs >= 21 but < 23,
where the constants identifying the fields are not defined.
This is totally my bad: I thought unknown constants would return
false, but instead they throw an Exception, which causes a
crash, caught by fbeaufort@ :sweaty smile emoji:
BUG=713417
Review-Url: https://codereview.chromium.org/2844503002
Cr-Commit-Position: refs/heads/master@{#467127}
Committed: https://chromium.googlesource.com/chromium/src/+/1a40ccb58c0b71b3cc5f1a0416d556982268fb6c
Patch Set 1 #
Messages
Total messages: 10 (6 generated)
|