Skip to content
Permalink
Browse files
优化
  • Loading branch information
gedoor committed Oct 21, 2021
1 parent 9ff29e8 commit 838e079e2be2aa30608586dfc30f8a9405f317b8
Showing with 3 additions and 0 deletions.
  1. +3 −0 app/src/main/java/io/legado/app/utils/ContextExtensions.kt
@@ -166,6 +166,9 @@ val Context.sysScreenOffTime: Int

val Context.statusBarHeight: Int
get() {
if (Build.BOARD == "windows") {
return 0
}
val resourceId = resources.getIdentifier("status_bar_height", "dimen", "android")
return resources.getDimensionPixelSize(resourceId)
}

0 comments on commit 838e079

Please sign in to comment.