element-x-android
87184328 - Fix crash when using `View.hideKeyboardAndAwaitAnimation` (#6502)

Commit
23 days ago
Fix crash when using `View.hideKeyboardAndAwaitAnimation` (#6502) * Fix crash when using `View.hideKeyboardAndAwaitAnimation` Remove the `View.OnApplyWindowInsetsListener` used in modern Android versions to detect if the insets changed after they do the first time: this is a single use operation and the listener will be called every time the insets change Also, replace `Mutex` with `CompletableDeferred` so it doesn't matter if it's called several times, we only care about the first one. * Don't try to hide the keyboard if it's already hidden. Also, add a 1s timeout in case everything goes wrong and we somehow never complete the future.
Author
Parents
Loading