Artur Schwarz
08/15/2022, 11:13 AMval appBarContentPadding = WindowInsets
.statusBars
.only(WindowInsetsSides.Horizontal + <http://WindowInsetsSides.Top|WindowInsetsSides.Top>)
.asPaddingValues()
val fullAppBarHeight = remember(appBarContentPadding) {
appBarHeight + appBarContentPadding.calculateTopPadding()
}
At first, the statusBar Insets have proper values:
InsetsPaddingValues(insets=(statusBars(0, *99*, 0, 0) only WindowInsetsSides(Start+Left+Top+End+Right)), density=DensityImpl(density=3.0, fontScale=1.0))
After a configuration change (such as changing language on the phone and resuming the app) the values are wrong:
InsetsPaddingValues(insets=(statusBars(0, *0*, 0, 0) only WindowInsetsSides(Start+Left+Top+End+Right)), density=DensityImpl(density=3.0, fontScale=1.0))
Could this be a bug or are we doing something wrong?Artur Schwarz
08/15/2022, 11:14 AMAlex Vanyo
08/15/2022, 6:03 PMArtur Schwarz
08/16/2022, 7:46 AMAlex Vanyo
08/16/2022, 3:47 PM