commit 58c3eb48f98aef9d73bfb2d5cb17ca07ca5a376a parent af6f02062b85096c597260f89ecc858cc834ed5c Author: Mugurell <Mugurell@users.noreply.github.com> Date: Mon, 13 Oct 2025 14:43:29 +0000 Bug 1992740 - Ensure keyboard insets are applied when keyboard closes r=android-reviewers,skhan Differential Revision: https://phabricator.services.mozilla.com/D268115 Diffstat:
| M | mobile/android/android-components/components/support/ktx/src/main/java/mozilla/components/support/ktx/android/view/ImeInsetsSynchronizer.kt | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mobile/android/android-components/components/support/ktx/src/main/java/mozilla/components/support/ktx/android/view/ImeInsetsSynchronizer.kt b/mobile/android/android-components/components/support/ktx/src/main/java/mozilla/components/support/ktx/android/view/ImeInsetsSynchronizer.kt @@ -152,7 +152,7 @@ class ImeInsetsSynchronizer private constructor( // Ideally we would just call view.requestApplyInsets() and let the normal dispatch // cycle happen, but this happens too late resulting in a visual flicker. // Instead we manually dispatch the most recent WindowInsets to the view. - ViewCompat.dispatchApplyWindowInsets(targetView, currentInsets) + ViewCompat.dispatchApplyWindowInsets(insetsSource, currentInsets) } }