提交 ee77cca2 编写于 作者: H Hugo Castelani 提交者: GitHub

Update ScreenUtils.java

上级 1895443d
......@@ -181,6 +181,8 @@ public final class ScreenUtils {
* @return {@code true}: Yes<br>{@code false}: No
*/
public static boolean isTablet() {
return Utils.getContext().getResources().getBoolean(R.bool.isTablet);
return (Utils.getContext().getResources().getConfiguration().screenLayout
& Configuration.SCREENLAYOUT_SIZE_MASK)
>= Configuration.SCREENLAYOUT_SIZE_LARGE;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册