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

Commit c737d35e authored by Daniel Kim's avatar Daniel Kim Committed by Android (Google) Code Review
Browse files

Merge "Revert "Include invisible parent layouts in assistStructure"" into main

parents 201a936f fc00db0a
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -3752,15 +3752,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
                        && !child.isActivityDeniedForAutofillForUnimportantView())
                    || (shouldIncludeAllChildrenViewWithAutofillTypeNotNone(afm)
                        && child.getAutofillType() != AUTOFILL_TYPE_NONE)
                    || shouldIncludeAllChildrenViews(afm)
                    || (child instanceof ViewGroup && child.getVisibility() != View.VISIBLE)) {
                // If the child is a ViewGroup object and its visibility is not visible, include
                // it as part of the assist structure. The children of these invisible ViewGroup
                // objects are parsed and included in the assist structure. When the Autofill
                // Provider determines the visibility of these children, it looks at their
                // visibility as well as their parent's visibility. Omitting invisible parents
                // will lead to the Autofill Provider incorrectly assuming that these children
                // of invisible parents are actually visible.
                    || shouldIncludeAllChildrenViews(afm)){
                list.add(child);
            } else if (child instanceof ViewGroup) {
                ((ViewGroup) child).populateChildrenForAutofill(list, flags);