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

Commit 123d8bf9 authored by Taran Singh's avatar Taran Singh
Browse files

Always deliver toolType from toolkit to IME

In [1] we incorrectly disallowed toolkit to send editor tooltype to IME.
This CL reinstates that so both HandwritingModeController and toolkit
could keep IME up-to-date with editor toolType.

[1]: I86952bc6591c9f6d29ab2dc94027d4903db6a762

Bug: 298149197
Test: atest StylusHandwritingTest
Change-Id: I7c2d658b4954690dc9a764ff7042fb51cdedca1e
parent c652d588
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -3537,8 +3537,7 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub
            ImeTracker.forLogging().onProgress(statsToken, ImeTracker.PHASE_SERVER_HAS_IME);
            ImeTracker.forLogging().onProgress(statsToken, ImeTracker.PHASE_SERVER_HAS_IME);
            mCurStatsToken = null;
            mCurStatsToken = null;


            if (!Flags.useHandwritingListenerForTooltype()
            if (lastClickToolType != MotionEvent.TOOL_TYPE_UNKNOWN) {
                    && lastClickToolType != MotionEvent.TOOL_TYPE_UNKNOWN) {
                curMethod.updateEditorToolType(lastClickToolType);
                curMethod.updateEditorToolType(lastClickToolType);
            }
            }
            mVisibilityApplier.performShowIme(windowToken, statsToken,
            mVisibilityApplier.performShowIme(windowToken, statsToken,