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

Commit cf160115 authored by Android Build Merger (Role)'s avatar Android Build Merger (Role) Committed by Android (Google) Code Review
Browse files

Merge "Merge "Let IC#requestCursorUpdates() fail for cross-display...

Merge "Merge "Let IC#requestCursorUpdates() fail for cross-display connections" into qt-dev am: 4daf5849 am: ccb4c665"
parents e66c73ff eec12780
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2037,6 +2037,12 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
        if (mCurSeq <= 0) mCurSeq = 1;
        mCurClient = cs;
        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;
        mCurAttribute = attribute;