fixing a deadloop at navigationBarHeight getter
This commit is contained in:
parent
194e5bde09
commit
5ea60c535d
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ buildscript {
|
|||
propMinSdkVersion = 21
|
||||
propTargetSdkVersion = propCompileSdkVersion
|
||||
propVersionCode = 1
|
||||
propVersionName = '5.26.17'
|
||||
propVersionName = '5.26.18'
|
||||
kotlin_version = '1.3.72'
|
||||
}
|
||||
|
||||
|
|
|
@ -719,7 +719,7 @@ val Context.windowManager: WindowManager get() = getSystemService(Context.WINDOW
|
|||
val Context.portrait get() = resources.configuration.orientation == Configuration.ORIENTATION_PORTRAIT
|
||||
val Context.navigationBarRight: Boolean get() = usableScreenSize.x < realScreenSize.x
|
||||
val Context.navigationBarBottom: Boolean get() = usableScreenSize.y < realScreenSize.y
|
||||
val Context.navigationBarHeight: Int get() = if (navigationBarBottom && navigationBarHeight != usableScreenSize.y) navigationBarSize.y else 0
|
||||
val Context.navigationBarHeight: Int get() = if (navigationBarBottom && navigationBarSize.y != usableScreenSize.y) navigationBarSize.y else 0
|
||||
val Context.navigationBarWidth: Int get() = if (navigationBarRight) navigationBarSize.x else 0
|
||||
|
||||
val Context.navigationBarSize: Point
|
||||
|
|
Loading…
Reference in a new issue