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

Add isTablet method

上级 66869a93
......@@ -174,4 +174,13 @@ public final class ScreenUtils {
return -123;
}
}
/**
* Check if the device is a tablet based on screen size
*
* @return {@code true}: Yes<br>{@code false}: No
*/
public static boolean isTablet() {
return Utils.getContext().getResources().getBoolean(R.bool.isTablet);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册