From 4a6d59b696d5284464a772d4478aecf26fdd4d6a Mon Sep 17 00:00:00 2001 From: Joanne Chung Date: Mon, 21 Jun 2021 21:32:45 +0800 Subject: [PATCH] Fix TextViewTranslationTest test fail. The fail will only be found in the release build, we put the return in the wrong place. Bug: 189359744 Test: local disable flag and TextViewTranslationTest pass. Change-Id: Idd377145b3757abaf528a90a25b6c73e9940f9f8 --- core/java/android/widget/TextView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index 3c4fd5e935804..4daa2e311e3d0 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -13925,8 +13925,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener Log.w(LOG_TAG, "Cannot create translation request. editable = " + isTextEditable() + ", isPassword = " + isPassword + ", selectable = " + isTextSelectable()); - return; } + return; } // TODO(b/176488462): apply the view's important for translation requestBuilder.setValue(ViewTranslationRequest.ID_TEXT,