summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yohei Yukawa <yukawa@google.com> 2014-08-13 16:49:35 +0900
committer Yohei Yukawa <yukawa@google.com> 2014-08-13 17:17:09 +0900
commit7360591bbfc91594f96b3169509d1ea5f2ab5c44 (patch)
tree0ce5d981535e9818aa107392ad5eb4542f391a9f
parent09015492e52299bdf810f95e6aa9262e69879827 (diff)
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
-rw-r--r--core/java/android/view/inputmethod/InputMethodManager.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/java/android/view/inputmethod/InputMethodManager.java b/core/java/android/view/inputmethod/InputMethodManager.java
index 623b5f96963f..eec35709e1b4 100644
--- a/core/java/android/view/inputmethod/InputMethodManager.java
+++ b/core/java/android/view/inputmethod/InputMethodManager.java
@@ -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);