diff --git a/app/src/main/java/com/kunfei/bookshelf/utils/ScreenUtils.java b/app/src/main/java/com/kunfei/bookshelf/utils/ScreenUtils.java index 0ffa29619a..97f27a159c 100644 --- a/app/src/main/java/com/kunfei/bookshelf/utils/ScreenUtils.java +++ b/app/src/main/java/com/kunfei/bookshelf/utils/ScreenUtils.java @@ -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; } }