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
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user