Skip to content

Commit e16deec

Browse files
committed
Improve ScreenUtils
1 parent e9c635c commit e16deec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

autosize/src/main/java/me/jessyan/autosize/utils/ScreenUtils.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
*/
3333
public class ScreenUtils {
3434

35+
private ScreenUtils() {
36+
throw new IllegalStateException("you can't instantiate me!");
37+
}
38+
3539
public static int getStatusBarHeight() {
3640
int result = 0;
3741
try {

0 commit comments

Comments
 (0)