OSDN Git Service

Don't get struct of children of !laidout viewGroup
authorPhilip P. Moltmann <moltmann@google.com>
Tue, 15 Aug 2017 22:22:37 +0000 (15:22 -0700)
committerPhilip P. Moltmann <moltmann@google.com>
Wed, 16 Aug 2017 16:03:15 +0000 (16:03 +0000)
commit083d8aace78207c8aa826f4c440759660f725f9b
treeb203161f50829b835a378e8f6995b301f656425f
parent175e8784dd4c3bea601f7f45f582d4d194cdc201
Don't get struct of children of !laidout viewGroup

Some view groups (e.g. the support.v4.viewPager) need to be laid out
to determine the order of it's children. As we need the order before
being able to collect the structure of the children we need to skip
their collection until they are laid out.

Fixes: 38198484
Test: cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases
      cts-tradefed run cts-dev -m CtsAccessibilityTestCases
      cts-tradefed run cts-dev -m CtsAccessibilityServiceTestCases

Change-Id: I1f7bee1505edaf70c9d9a686be6f9a76d8aedd0b
core/java/android/view/View.java
core/java/android/view/ViewGroup.java