|
|
@@ -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 {
|