Merge "Fix translation doesn't work on ViewGroup" into sc-qpr1-dev
This commit is contained in:
@@ -598,9 +598,8 @@ public class UiTranslationController {
|
|||||||
final View rootView = roots.get(rootNum).getView();
|
final View rootView = roots.get(rootNum).getView();
|
||||||
if (rootView instanceof ViewGroup) {
|
if (rootView instanceof ViewGroup) {
|
||||||
findViewsTraversalByAutofillIds((ViewGroup) rootView, sourceViewIds);
|
findViewsTraversalByAutofillIds((ViewGroup) rootView, sourceViewIds);
|
||||||
} else {
|
|
||||||
addViewIfNeeded(sourceViewIds, rootView);
|
|
||||||
}
|
}
|
||||||
|
addViewIfNeeded(sourceViewIds, rootView);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -611,9 +610,8 @@ public class UiTranslationController {
|
|||||||
final View child = viewGroup.getChildAt(i);
|
final View child = viewGroup.getChildAt(i);
|
||||||
if (child instanceof ViewGroup) {
|
if (child instanceof ViewGroup) {
|
||||||
findViewsTraversalByAutofillIds((ViewGroup) child, sourceViewIds);
|
findViewsTraversalByAutofillIds((ViewGroup) child, sourceViewIds);
|
||||||
} else {
|
|
||||||
addViewIfNeeded(sourceViewIds, child);
|
|
||||||
}
|
}
|
||||||
|
addViewIfNeeded(sourceViewIds, child);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user