Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f26c6ea authored by Ahaan Ugale's avatar Ahaan Ugale Committed by Automerger Merge Worker
Browse files

Translate: Ignore duplicate translations. am: 02fe90bb

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14661090

Change-Id: I06dc3492f8d6fc0568c73f7e28b86ca4bfeadd3b
parents 148c1192 02fe90bb
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -389,6 +389,14 @@ public class UiTranslationController {
                    continue;
                }
                mActivity.runOnUiThread(() -> {
                    if (view.getViewTranslationResponse() != null
                            && view.getViewTranslationResponse().equals(response)) {
                        if (DEBUG) {
                            Log.d(TAG, "Duplicate ViewTranslationResponse for " + autofillId
                                    + ". Ignoring.");
                        }
                        return;
                    }
                    ViewTranslationCallback callback = view.getViewTranslationCallback();
                    if (callback == null) {
                        if (view instanceof TextView) {