element-x-ada/libraries/androidutils/src/main
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
..
kotlin/io/element/android/libraries/androidutils Fix crash when using View.hideKeyboardAndAwaitAnimation (#6502) 2026-03-31 16:45:10 +00:00
res Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
AndroidManifest.xml Copyright: Add Element Creations Ltd. copyright 2025-11-10 11:05:05 +01:00