OSDN Git Service

Fix requestLayout() optimizations
authorChet Haase <chet@google.com>
Mon, 7 Dec 2015 20:58:06 +0000 (12:58 -0800)
committerChet Haase <chet@google.com>
Mon, 7 Dec 2015 21:17:44 +0000 (13:17 -0800)
commit016f4457574c33b4c9c8a74189c77e1fbe411a3e
treefd61a19170d9a68481e01de7c17e711f61b65bca
parentdb9df39992ce6a1a09c2f26cde639baf126fa6f5
Fix requestLayout() optimizations

A bug in recent layout optimizations was causing the framework to avoid
laying out containers with WRAP_CONTENT in one axis or the other.
This fix updates the logic in the code that finds dependent layout axes
to correctly account for this case.

Issue #25980198 requestLayout() sometimes doesn't result in measure/layout for view

Change-Id: Ie5f678beef5d8c4ba25291ffdcd59797d4697acc
core/java/android/view/ViewGroup.java
core/java/android/widget/LinearLayout.java