提交 170251df 编写于 作者: 白俊辉

Merge branch 'android' into 'master'

Fix demo app camera ratio

See merge request !786
......@@ -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.
先完成此消息的编辑!
想要评论请 注册