Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
gedoor committed Jan 8, 2019
1 parent b390bd9 commit 904e593
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/src/main/java/com/kunfei/bookshelf/utils/ScreenUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,15 @@ private static boolean hasNavigationBar() {
} else if ("0".equals(navBarOverride)) {
hasNavigationBar = true;
}
} catch (Exception e) {
} catch (Exception ignored) {
}
return hasNavigationBar;
}

public static DisplayMetrics getDisplayMetrics() {
DisplayMetrics metrics = MApplication
return MApplication
.getInstance()
.getResources()
.getDisplayMetrics();
return metrics;
}
}

0 comments on commit 904e593

Please sign in to comment.