Browse Source

fix: 底部栏高度返回错误

DoggyZhang 2 tuần trước cách đây
mục cha
commit
3b4bb2235c

+ 1 - 1
frame/bom/build.gradle

@@ -6,7 +6,7 @@ plugins {
 ext {
     GROUP_ID = 'com.wenext.android'
     ARTIFACT_ID = 'frame-bom'
-    VERSION = '6.2.18'
+    VERSION = '6.2.19'
 }
 
 dependencies {

+ 1 - 1
frame/util/build.gradle

@@ -7,7 +7,7 @@ plugins {
 ext {
     GROUP_ID = 'com.wenext.android'
     ARTIFACT_ID = 'frame-util'
-    VERSION = '6.0.10'
+    VERSION = '6.0.11'
 }
 
 if (project.FRAME_DEBUG != "true") {

+ 1 - 3
frame/util/src/main/java/com/adealink/frame/util/DisplayUtilExt.kt

@@ -32,11 +32,9 @@ fun Window?.statusBarHeightDp(): Int {
 }
 
 fun Context?.naviBarHeight(): Int {
-    val heightPx = this?.let {
+    return this?.let {
         getNavMenuHeight(it)
     } ?: 0
-    val scale = getDisplayMetrics().density
-    return (heightPx / scale).toInt()
 }
 
 fun Context?.naviBarHeightDp(): Int {