Niclas Hjalmarsson
10/07/2022, 9:49 AMWindowCompat.setDecorFitsSystemWindows(window, false)
to let me draw behind the systembars.
So all my compose views (that need it ofc) calls Modifier.systemBarPadding()
for statusbar and navbar padding, and it works as expected.
But I’ve found that calling for example an Intent chooser to pick an app to open like an installed email app, makes the systemBarPadding()
return 0 and my layout jumps to underneath the status bar. And it’s all very visible since the dialog from the Intent chooser is not covering the entire screen.
Any tips on how I can make systemBarPadding()
keeping it’s value even after the app is not in the foreground anymore?
Thanks for any help.Ivan Šiser
10/07/2022, 10:58 AMval statusBarHeight = resources.getDimensionPixelSize(statusBarHeightId)
globalRepository.statusBarHeight = statusBarHeight.dpFromPx(applicationContext)
Niclas Hjalmarsson
10/07/2022, 12:07 PM