Open Tolriq opened 5 months ago
Thanks! If anyone wants to figure out a quick fix for this one that'd benefit everybody, feel free to!
The quick ugly workaround is to apply .windowInsetsPadding(WindowInsets.safeDrawing)
to the outermost component. Don't really know the architecture of the app.
SO i have 2 suggestions
If you are using the Scaffold as the parent layout have you tried giving the top padding to its child like this
{ Column( modifier = Modifier.fillMaxSize().padding(top = it.calculateTopPadding()) .verticalScroll(rememberScrollState()).background(colorResource(R.color.bg_color))
in my cases this works like a charm and automatically adjust the top for me.
Modifier.statusbarPadding()
and if these are not the solution (most probably bug in Android's end) one other workaround would be to calculate the screen height and the subtracting a safe amount of padding from it and and giving it as the top padding of that top view.
Description
Small UI bug.
Steps to Reproduce
Build with targetSDK 35
This was more or less expected due to Android 15 inset changes, but I did expect the "action bar" to go under the status bar, not the bar to be correct and the content completely missplaced and under.