element-x-ada/libraries/androidutils
Jorge Martin Espinosa 87184328eb
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.
2026-03-31 16:45:10 +00:00
..
src Fix crash when using View.hideKeyboardAndAwaitAnimation (#6502) 2026-03-31 16:45:10 +00:00
.gitignore Change/move some gradle modules to be better separated. Let core module be a kotlin lib. 2023-01-24 17:38:57 +01:00
build.gradle.kts Copyright: Add Element Creations Ltd. copyright 2025-11-10 11:05:05 +01:00
consumer-rules.pro Change/move some gradle modules to be better separated. Let core module be a kotlin lib. 2023-01-24 17:38:57 +01:00