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

Commit 86163fc0 authored by Ahaan Ugale's avatar Ahaan Ugale Committed by Automerger Merge Worker
Browse files

Translate: Ignore duplicate translations. am: 02fe90bb am: 1f26c6ea

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

Change-Id: Ie9ec698d0e7d1df4421dffa783bc83b0465a5cc1
parents df9bc439 1f26c6ea
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) {