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

Commit f0c99d83 authored by Joanne Chung's avatar Joanne Chung Committed by Android (Google) Code Review
Browse files

Merge "Fix translation doesn't work on ViewGroup" into sc-qpr1-dev

parents f3d3be52 ec3f41e7
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -598,9 +598,8 @@ public class UiTranslationController {
            final View rootView = roots.get(rootNum).getView();
            if (rootView instanceof ViewGroup) {
                findViewsTraversalByAutofillIds((ViewGroup) rootView, sourceViewIds);
            } else {
                addViewIfNeeded(sourceViewIds, rootView);
            }
            addViewIfNeeded(sourceViewIds, rootView);
        }
    }

@@ -611,9 +610,8 @@ public class UiTranslationController {
            final View child = viewGroup.getChildAt(i);
            if (child instanceof ViewGroup) {
                findViewsTraversalByAutofillIds((ViewGroup) child, sourceViewIds);
            } else {
                addViewIfNeeded(sourceViewIds, child);
            }
            addViewIfNeeded(sourceViewIds, child);
        }
    }