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

Commit 7360591b authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Suppress warnings of redundant calls of #updateCursorAnchorInfo

Warnings of redundant calls of #updateCursorAnchorInfo should be
suppressed at least until such redundant calls from
android.widget.Editor are addressed.

BUG: 16996008
Change-Id: I62b6acdab06178520473bd53e56e2cfb62fb17be
parent 09015492
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1655,7 +1655,12 @@ public final class InputMethodManager {
            final boolean isImmediate = (mCursorAnchorInfoMonitorMode &
                    CursorAnchorInfoRequest.FLAG_CURSOR_ANCHOR_INFO_IMMEDIATE) != 0;
            if (!isImmediate && Objects.equals(mCursorAnchorInfo, cursorAnchorInfo)) {
                Log.w(TAG, "Ignoring redundant updateCursorAnchorInfo: info=" + cursorAnchorInfo);
                // TODO: Consider always emitting this message once we have addressed redundant
                // calls of this method from android.widget.Editor.
                if (DEBUG) {
                    Log.w(TAG, "Ignoring redundant updateCursorAnchorInfo: info="
                            + cursorAnchorInfo);
                }
                return;
            }
            if (DEBUG) Log.v(TAG, "updateCursorAnchorInfo: " + cursorAnchorInfo);