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

Commit 41b19325 authored by Felix Stern's avatar Felix Stern
Browse files

Use refactored code path in InputMethodManager#showSoftInputUnchecked

Some apps still use the deprecated call to InputMethodManager#showSoftInputUnchecked. This was not using the refactored code path, which is fixed by this CL.

Bug: 378032087
Test: manual
Flag: android.view.inputmethod.refactor_insets_controller
Change-Id: I144bcf51b7dae29341bd270276b10fef3790dcc1
parent df78d83f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2471,6 +2471,11 @@ public final class InputMethodManager {
                return;
            }

            if (Flags.refactorInsetsController()) {
                showSoftInput(rootView, statsToken, flags, resultReceiver, reason);
                return;
            }

            ImeTracker.forLogging().onProgress(statsToken, ImeTracker.PHASE_CLIENT_VIEW_SERVED);

            // Makes sure to call ImeInsetsSourceConsumer#onShowRequested on the UI thread.