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

Commit ccb4c665 authored by Yohei Yukawa's avatar Yohei Yukawa Committed by android-build-merger
Browse files

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

am: 4daf5849

Change-Id: I3309edeb16d05c09dc1fedca3ee7387e938f692d
parents feb89e40 4daf5849
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;