Fix Wi-Fi QR code scanner height at 360dp
To avoid error message cut on small screen devices Bug: 131628795 Test: manual Change-Id: I33fa55da22823064608739bed33cdd287bffa0b8
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user