pull/594/head
jhengazuki 3 months ago
parent 5e17376d1b
commit 7d9e5ec848
  1. 2
      app/src/leanback/java/com/fongmi/android/tv/Product.java
  2. 2
      app/src/mobile/java/com/fongmi/android/tv/Product.java

@ -32,6 +32,6 @@ public class Product {
}
public static int getEms() {
return Math.min(ResUtil.getScreenWidth() / ResUtil.sp2px(24), 35);
return Math.min(Math.round((float) ResUtil.getScreenWidth() / ResUtil.sp2px(24)), 35);
}
}

@ -44,6 +44,6 @@ public class Product {
}
public static int getEms() {
return Math.min(ResUtil.getScreenWidth() / ResUtil.sp2px(20), 25);
return Math.min(Math.round((float) ResUtil.getScreenWidth() / ResUtil.sp2px(20)), 25);
}
}

Loading…
Cancel
Save