pollux-
08/02/2021, 10:41 PMViewCompat.setOnApplyWindowInsetsListener(this) { _, windowInsets ->
val statusBarInsets = windowInsets.getInsets(WindowInsetsCompat.Type.statusBars())
val statusBarHeight: Int = <http://statusBarInsets.top|statusBarInsets.top>
}
Does anyone knows, why I’m I getting statusBar height as zero, this will be called multiple times, sometimes I see the actual height of the status bar but sometimes it does reset to zero.
Appreciate your helpLuis
08/02/2021, 10:56 PM