Chris Johnson
07/26/2021, 8:14 PMLocalView.current.rootWindowInsets?.isVisible(WindowInsets.Type.ime())
. But that's for api 30+... I've tried to use accompanist's insets
api to see if there's insets (for the keyboard) but to no success.Bryan L
07/26/2021, 8:22 PMLocalWindowInsets.current.ime.isVisible
Chris Johnson
07/26/2021, 8:27 PMsnapshotFlow
that would be ideal but I can't find one at the moment.cb
07/26/2021, 8:55 PMsnapshotFlow{}
just fine:
val imeInsets = LocalWindowInsets.current.ime
LaunchedEffect(imeInsets) {
snapshotFlow { imeInsets.isVisible }
}
Chris Johnson
07/26/2021, 9:11 PMChris Johnson
07/26/2021, 9:17 PMOnApplyWindowInsetsListener
? Probably not but worth asking 😄cb
07/26/2021, 9:18 PMcb
07/26/2021, 9:19 PMWindowInsetsCompat
issue though, as the < API 30 logic is tricky.Chris Johnson
07/26/2021, 9:38 PMWindowCompat.setDecorFitsSystemWindows(window, false)
from my BaseActivity. I assume that boolean value needs to be false for accompanist to provide insets? With that value as false my bottom bar and toolbar are gone so I need to do some investigation. Thanks for the information! If I'm able to sort out my bars being gone and it still doesn't update I'll raise an issue :)cb
07/26/2021, 10:28 PM