Merge "Fix Wi-Fi QR code scanner height at 360dp" into qt-dev

This commit is contained in:
TreeHugger Robot
2019-05-13 07:10:11 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 10 deletions

View File

@@ -313,9 +313,6 @@ public class QrCamera extends Handler {
private void setTransformationMatrix(Size viewSize) {
// Check aspect ratio, can only handle square view.
final int viewRatio = (int)getRatio(viewSize.getWidth(), viewSize.getHeight());
if (viewRatio != 1) {
throw new IllegalArgumentException("Preview area should be square");
}
final boolean isPortrait = mContext.get().getResources().getConfiguration().orientation
== Configuration.ORIENTATION_PORTRAIT ? true : false;