element-x-ada/libraries/androidutils/src
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
..
main Fix crash when using View.hideKeyboardAndAwaitAnimation (#6502) 2026-03-31 16:45:10 +00:00
test/kotlin/io/element/android/libraries/androidutils When linkifying, adjust the URLSpan's url too (#6188) 2026-02-12 12:12:57 +00:00