提交 4cf3bc75 编写于 作者: B Bin Li 提交者: 赵奇可

Fix demo app camera ratio

上级 d83295e8
......@@ -115,7 +115,7 @@ public class CameraApiLessM extends CameraEngage implements Camera.AutoFocusCall
private Camera.Size getOptimalSize(List<Camera.Size> sizes, int w, int h) {
final double ASPECT_TOLERANCE = 0.1;
double targetRatio = (double) h / w;
double targetRatio = (double) w / h;
Camera.Size optimalSize = null;
double minDiff = Double.MAX_VALUE;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册