pull/1397/head 3.21.102210
gedoor 3 years ago
parent 9ff29e8bc8
commit 838e079e2b
  1. 3
      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)
}

Loading…
Cancel
Save