summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Dubrovsky <dubrovsky@google.com>2021-05-23 22:58:38 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-05-23 22:58:38 +0000
commit75dc1f16e3637b9045ee047d5bf7ab15565b5d21 (patch)
tree9b6132cdc4a999f7581633aed0ec9041ef60358b
parent21a24b06bd060e41cb9dcd788375f5e5cdb54491 (diff)
parent5175c12a133d12517852198a45a4b2267911dde0 (diff)
Merge "Remove verbose logcat messages in TextViewOnReceiveContentListener" into sc-dev
-rw-r--r--core/java/android/widget/TextViewOnReceiveContentListener.java23
1 files changed, 1 insertions, 22 deletions
diff --git a/core/java/android/widget/TextViewOnReceiveContentListener.java b/core/java/android/widget/TextViewOnReceiveContentListener.java
index 6a966e0b6d3f..66e25b02e5ab 100644
--- a/core/java/android/widget/TextViewOnReceiveContentListener.java
+++ b/core/java/android/widget/TextViewOnReceiveContentListener.java
@@ -183,15 +183,9 @@ public final class TextViewOnReceiveContentListener implements OnReceiveContentL
*/
private static boolean isUsageOfImeCommitContentEnabled(@NonNull View view) {
if (view.getReceiveContentMimeTypes() != null) {
- if (Log.isLoggable(LOG_TAG, Log.VERBOSE)) {
- Log.v(LOG_TAG, "Fallback to commitContent disabled (custom callback is set)");
- }
return false;
}
if (Compatibility.isChangeEnabled(AUTOFILL_NON_TEXT_REQUIRES_ON_RECEIVE_CONTENT_LISTENER)) {
- if (Log.isLoggable(LOG_TAG, Log.VERBOSE)) {
- Log.v(LOG_TAG, "Fallback to commitContent disabled (target SDK is above S)");
- }
return false;
}
return true;
@@ -222,10 +216,6 @@ public final class TextViewOnReceiveContentListener implements OnReceiveContentL
*/
void setInputConnectionInfo(@NonNull TextView view, @NonNull InputConnection ic,
@NonNull EditorInfo editorInfo) {
- if (Log.isLoggable(LOG_TAG, Log.VERBOSE)) {
- Log.v(LOG_TAG, "setInputConnectionInfo: "
- + Arrays.toString(editorInfo.contentMimeTypes));
- }
if (!isUsageOfImeCommitContentEnabled(view)) {
mInputConnectionInfo = null;
return;
@@ -243,9 +233,6 @@ public final class TextViewOnReceiveContentListener implements OnReceiveContentL
* callback instance.
*/
void clearInputConnectionInfo() {
- if (Log.isLoggable(LOG_TAG, Log.VERBOSE)) {
- Log.v(LOG_TAG, "clearInputConnectionInfo: " + mInputConnectionInfo);
- }
mInputConnectionInfo = null;
}
@@ -265,17 +252,9 @@ public final class TextViewOnReceiveContentListener implements OnReceiveContentL
}
final InputConnectionInfo icInfo = mInputConnectionInfo;
if (icInfo == null) {
- if (Log.isLoggable(LOG_TAG, Log.VERBOSE)) {
- Log.v(LOG_TAG, "getEditorInfoMimeTypes: No usable EditorInfo");
- }
return null;
}
- final String[] editorInfoContentMimeTypes = icInfo.mEditorInfoContentMimeTypes;
- if (Log.isLoggable(LOG_TAG, Log.VERBOSE)) {
- Log.v(LOG_TAG, "getEditorInfoMimeTypes: "
- + Arrays.toString(editorInfoContentMimeTypes));
- }
- return editorInfoContentMimeTypes;
+ return icInfo.mEditorInfoContentMimeTypes;
}
/**