diff options
| author | Joanne Chung <joannechung@google.com> | 2021-03-23 23:46:17 +0800 |
|---|---|---|
| committer | Ahaan Ugale <augale@google.com> | 2021-03-25 22:31:54 -0700 |
| commit | f51da99ac179cfa35f89c26245440dc2a85f60e3 (patch) | |
| tree | 6afa84d211bfe4a57c23471c74410aafda9b0e1b /core/java/android/widget/TextView.java | |
| parent | ae6711b2a78edb30fdec09a083480df002dde0d1 (diff) | |
Implement dispatchRequestTranslation for getting translation information.
This change doesn't contain the virtual view part and the API, it
will be done in the next change.
Bug: 178046780
Test: manual
Test: atest CtsTranslationTestCases
CTS-Coverage-Bug: 177960696
Change-Id: Idba66a882a90168ecdd93423c0d5d054ab040dad
Diffstat (limited to 'core/java/android/widget/TextView.java')
| -rw-r--r-- | core/java/android/widget/TextView.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index 6733c0d3a8e1..ffaa31552a6a 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -13872,7 +13872,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener */ @Nullable @Override - public ViewTranslationRequest createTranslationRequest(@NonNull int[] supportedFormats) { + public ViewTranslationRequest onCreateTranslationRequest(@NonNull int[] supportedFormats) { if (supportedFormats == null || supportedFormats.length == 0) { // TODO(b/182433547): remove before S release if (UiTranslationController.DEBUG) { @@ -13938,7 +13938,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener /** * - * Called when the content from {@link #createTranslationRequest} had been translated by the + * Called when the content from {@link #onCreateTranslationRequest} had been translated by the * TranslationService. The default implementation will replace the current * {@link TransformationMethod} to transform the original text to the translated text display. * |
