Merge "Fix requestLayout() optimizations"

This commit is contained in:
Chet Haase
2015-12-07 21:29:00 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -5631,7 +5631,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
final int matchAxisFilter = ((lp.width == MATCH_PARENT ? FLAG_LAYOUT_AXIS_HORIZONTAL : 0)
| (lp.height == MATCH_PARENT ? FLAG_LAYOUT_AXIS_VERTICAL : 0)) & axisFilter;
if (matchAxisFilter != 0) {
if (matchAxisFilter != 0 || wrapAxisFilter != 0) {
final ViewParent parent = getParent();
if (parent != null) {
// If our parent depends on us for an axis, then our layout can also be affected

View File

@@ -683,7 +683,7 @@ public class LinearLayout extends ViewGroup {
}
}
if (matchAxisFilter != 0) {
if (matchAxisFilter != 0 || wrapAxisFilter != 0) {
final ViewParent parent = getParent();
if (parent != null) {
// If our parent depends on us for an axis, then our layout can also be affected