james
12/15/2022, 12:17 AMhide()
before doing the next thing.. the UX feels nicer than without the delay, but the delay itself feels flimsy — in fact we probably need a condition that says we don’t have a delay on older API levels which don’t animate the IME at all.
it’d be cool if there was some kind of isImeAnimating
state I could watch for this purpose, or something I could use to create a derived state to produce my own isImeAnimating
, but I can’t think of anything immediately and a quick search hasn’t turned anything updorche
12/15/2022, 12:29 AMAlex Vanyo
12/15/2022, 12:30 AMjames
12/15/2022, 12:52 AMAlex Vanyo
12/15/2022, 12:59 AM1.4.0-alpha01
first: https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.4.0-alpha01
If WindowInsets.imeAnimationTarget and WindowInsets.imeAnimationSource are unequal, that should be a signal that there is an animation underway.james
12/15/2022, 1:01 AMcompose.ui
not compose.foundation
🤦