diff options
author | Yura <yura@google.com> | 2017-01-24 19:41:41 +0000 |
---|---|---|
committer | Yura <yura@google.com> | 2017-01-30 18:10:34 +0000 |
commit | a354c4f1565cb69ab0858b586c4f2071a46b1105 (patch) | |
tree | bb5bb501498ab39ec84d7eea4651c252a4e6cb0f /tools/aapt2/diff/Diff.cpp | |
parent | fda076a12ed641d5ab53933c4aac9e8063c580d0 (diff) |
Fix for endless loop in RelativeLayout.
getRelatedView(int[] rules, int relation)
is stuck in the loop, when a view is GONE, and references itself.
There is already a check in:
getSortedViews(View[] sorted, int... rules) {
to make sure there are no loops of ViewA -> ViewB -> ViewA
BUT, there was a change made in findRoots(int[] rulesFilter)
to "Remove exception throw when a view has a self dependency
inside a RelativeLayout." so this means we must allow this case.
Other change git commit sha: da3003e1d71d66a1c936489025f8db314a2a4588
Bug: http://b/android.com/231353
Change-Id: Icc26b86ebbb19e482c3afe6a39db996ec493586d
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions