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

Commit f3b13f10 authored by Taran Singh's avatar Taran Singh Committed by Android (Google) Code Review
Browse files

Merge "Dont finish handwriting inking was prepared for session" into udc-qpr-dev

parents d101028b 8fab9530
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1019,8 +1019,9 @@ public class InputMethodService extends AbstractInputMethodService {
            if (!mOnPreparedStylusHwCalled) {
                // prepare hasn't been called by Stylus HOVER.
                onPrepareStylusHandwriting();
                mOnPreparedStylusHwCalled = true;
            }
            // reset flag as it's not relevant after onStartStylusHandwriting().
            mOnPreparedStylusHwCalled = false;
            if (onStartStylusHandwriting()) {
                cancelStylusWindowIdleTimeout();
                mPrivOps.onStylusHandwritingReady(requestId, Process.myPid());
@@ -3089,7 +3090,8 @@ public class InputMethodService extends AbstractInputMethodService {
        mInputStarted = false;
        mStartedInputConnection = null;
        mCurCompletions = null;
        if (mInkWindow != null) {
        if (!mOnPreparedStylusHwCalled) {
            // If IME didn't prepare to show InkWindow for current handwriting session.
            finishStylusHandwriting();
        }
        // Back callback is typically unregistered in {@link #hideWindow()}, but it's possible