diff options
| author | 2024-11-27 09:49:01 +0000 | |
|---|---|---|
| committer | 2024-11-27 09:49:01 +0000 | |
| commit | f12273cfb073f6cea776aeaa9f5c24a1e7c0e8bf (patch) | |
| tree | db73c0e014668c951af9e88bde45bd1384145678 | |
| parent | fee19b9d92089eabb6b7d399877141635555c5f0 (diff) | |
| parent | 8aefc71f84eaadff8aa034c7b1b9dcc08bcfb083 (diff) | |
Merge "Passing statsToken from InputMethodManager#hideSoftInputFromWindow" into main
| -rw-r--r-- | core/java/android/view/inputmethod/InputMethodManager.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/java/android/view/inputmethod/InputMethodManager.java b/core/java/android/view/inputmethod/InputMethodManager.java index 6303c7637a59..5dd29b26730d 100644 --- a/core/java/android/view/inputmethod/InputMethodManager.java +++ b/core/java/android/view/inputmethod/InputMethodManager.java @@ -2626,10 +2626,12 @@ public final class InputMethodManager { // The view is running on a different thread than our own, so // we need to reschedule our work for over there. if (DEBUG) Log.v(TAG, "Hiding soft input: reschedule to view thread"); + final var finalStatsToken = statsToken; vh.post(() -> viewRootImpl.getInsetsController().hide( - WindowInsets.Type.ime())); + WindowInsets.Type.ime(), false /* fromIme */, finalStatsToken)); } else { - viewRootImpl.getInsetsController().hide(WindowInsets.Type.ime()); + viewRootImpl.getInsetsController().hide(WindowInsets.Type.ime(), + false /* fromIme */, statsToken); } } return true; |