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

Commit 3498e539 authored by Cosmin Băieș's avatar Cosmin Băieș
Browse files

Fix fallbackIMM#showSoftInput call

Previously calls to fallbackIMM#showSoftInput would drop the statsToken
and reason, as they would call a different variant of the function.

This fixes it to ensure no statsToken can timeout in this case.

Test: n/a
Bug: 294992637
Change-Id: Ib6b1c0c1822be5de6b246a6c662d1d93ff4a0331
parent 8aef12b5
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2165,7 +2165,7 @@ public final class InputMethodManager {
        // Re-dispatch if there is a context mismatch.
        // Re-dispatch if there is a context mismatch.
        final InputMethodManager fallbackImm = getFallbackInputMethodManagerIfNecessary(view);
        final InputMethodManager fallbackImm = getFallbackInputMethodManagerIfNecessary(view);
        if (fallbackImm != null) {
        if (fallbackImm != null) {
            return fallbackImm.showSoftInput(view, flags, resultReceiver);
            return fallbackImm.showSoftInput(view, statsToken, flags, resultReceiver, reason);
        }
        }


        checkFocus();
        checkFocus();