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

Commit 4daf5849 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Let IC#requestCursorUpdates() fail for cross-display connections" into qt-dev

parents c2ddfa50 3d2cc0ff
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -2037,6 +2037,12 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
        if (mCurSeq <= 0) mCurSeq = 1;
        if (mCurSeq <= 0) mCurSeq = 1;
        mCurClient = cs;
        mCurClient = cs;
        mCurInputContext = inputContext;
        mCurInputContext = inputContext;
        if (cs.selfReportedDisplayId != displayIdToShowIme) {
            // CursorAnchorInfo API does not work as-is for cross-display scenario.  Pretend that
            // InputConnection#requestCursorUpdates() is not implemented in the application so that
            // IMEs will always receive false from this API.
            missingMethods |= MissingMethodFlags.REQUEST_CURSOR_UPDATES;
        }
        mCurInputContextMissingMethods = missingMethods;
        mCurInputContextMissingMethods = missingMethods;
        mCurAttribute = attribute;
        mCurAttribute = attribute;