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

Commit 67b48512 authored by Joanne Chung's avatar Joanne Chung
Browse files

Fix the wrong logic to check if the element in SparseArray

Bug: 178046780
Test: manual by using a sample app.
Change-Id: Iab7d8a946a32e3be6393e8bdd4d69670d85819f9
parent e1b23cd4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -254,7 +254,7 @@ public class UiTranslationController {
                viewsResult.put(translatedResult.keyAt(i), result);
            } else {
                final boolean isVirtualViewAdded =
                        virtualViewsResult.indexOfKey(autofillId.getViewId()) > 0;
                        virtualViewsResult.indexOfKey(autofillId.getViewId()) >= 0;
                final LongSparseArray<ViewTranslationResponse> childIds =
                        isVirtualViewAdded ? virtualViewsResult.get(autofillId.getViewId())
                                : new LongSparseArray<>();