Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f12273cf authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Passing statsToken from InputMethodManager#hideSoftInputFromWindow" into main

parents fee19b9d 8aefc71f
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -2626,10 +2626,12 @@ public final class InputMethodManager {
                        // The view is running on a different thread than our own, so
                        // The view is running on a different thread than our own, so
                        // we need to reschedule our work for over there.
                        // we need to reschedule our work for over there.
                        if (DEBUG) Log.v(TAG, "Hiding soft input: reschedule to view thread");
                        if (DEBUG) Log.v(TAG, "Hiding soft input: reschedule to view thread");
                        final var finalStatsToken = statsToken;
                        vh.post(() -> viewRootImpl.getInsetsController().hide(
                        vh.post(() -> viewRootImpl.getInsetsController().hide(
                                WindowInsets.Type.ime()));
                                WindowInsets.Type.ime(), false /* fromIme */, finalStatsToken));
                    } else {
                    } else {
                        viewRootImpl.getInsetsController().hide(WindowInsets.Type.ime());
                        viewRootImpl.getInsetsController().hide(WindowInsets.Type.ime(),
                                false /* fromIme */, statsToken);
                    }
                    }
                }
                }
                return true;
                return true;