Chromium Code Reviews
DescriptionImage Capture Android: only restore preview parameters after photo is taken
This CL introduces a member variable |mPreviewParameters| to
cache the preview capture parameters in order to restore them
after a picture is being taken and, more importantly (see bug),
delays restoring those parameters until after the picture is
actually taken.
While debugging these changes with a Nexus 7 and a Galaxy Note 2
7100, I reckoned that the Nexus 7 is very delicate so I added
some try-catches and avoided setting the picture resolution
if not truly set by the user (== use preview size).
BUG=706674
Review-Url: https://codereview.chromium.org/2826453002
Cr-Commit-Position: refs/heads/master@{#465118}
(cherry picked from commit a6c1b9d6d636b72d9b88cb2ab5723be4770d006f)
Review-Url: https://codereview.chromium.org/2821343002 .
Cr-Commit-Position: refs/branch-heads/3071@{#35}
Cr-Branched-From: a106f0abbf69dad349d4aaf4bcc4f5d376dd2377-refs/heads/master@{#464641}
Committed: https://chromium.googlesource.com/chromium/src/+/a6f7ea59c5633ef2dc2708448487585a7cfdf23b
Patch Set 1 #
Messages
Total messages: 2 (1 generated)
|
|||||||||||||||||||