commit | 352d866af767e3cc348aed1e0db9f9578e5e6b1b | [log] [tgz] |
---|---|---|
author | Arc Wang <arcwang@google.com> | Wed May 22 16:04:28 2019 +0800 |
committer | Arc Wang <arcwang@google.com> | Fri May 24 14:43:06 2019 +0800 |
tree | b7e8f0b91cc0272de670790fead9eae882185164 | |
parent | ef0f8a4dab540d2dfeeb2edbd929d8bd3efbb0e2 [diff] |
Fix Wi-Fi QR scanner crash problem 1. Should only set picture size from the list of supported picture sizes. To choose the best picture size, we should keep ratio as preview size to avoid image distortion and QR code scan failure. 2. When Camera#setOneShotPreviewCallback callbacks, the image data is of preview size, not picture size. Bug: 132866467 Test: QrCameraTest manual Change-Id: I087e5fcdf064f111e915e0872b50ca5a45ff1d26