summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhoford <hoford@google.com>2018-06-04 13:16:07 -0700
committerhoford <hoford@google.com>2018-06-04 14:25:39 -0700
commit53fdd9b8cef76dcc996bd152299c9cc47d010912 (patch)
tree23736a5fa109b437319895dbc5338d3d52e0970a
parent406e6406c502b4467775a417155e7a4b92e787f7 (diff)
downloadsherpa-53fdd9b8cef76dcc996bd152299c9cc47d010912.tar.gz
Fix ConstraintSet default value bug.
Test: In design-tools bug: 78443408 Change-Id: I548afad8d88a765674cd9ed0d2ebdb5e65630654
-rw-r--r--constraintlayout/src/main/java/android/support/constraint/ConstraintSet.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/constraintlayout/src/main/java/android/support/constraint/ConstraintSet.java b/constraintlayout/src/main/java/android/support/constraint/ConstraintSet.java
index 8eafdd9..846649b 100644
--- a/constraintlayout/src/main/java/android/support/constraint/ConstraintSet.java
+++ b/constraintlayout/src/main/java/android/support/constraint/ConstraintSet.java
@@ -403,8 +403,8 @@ public class ConstraintSet {
public float translationZ = 0;
public boolean constrainedWidth = false;
public boolean constrainedHeight = false;
- public int widthDefault = UNSET;
- public int heightDefault = UNSET;
+ public int widthDefault = ConstraintWidget.MATCH_CONSTRAINT_SPREAD;
+ public int heightDefault = ConstraintWidget.MATCH_CONSTRAINT_SPREAD;
public int widthMax = UNSET;
public int heightMax = UNSET;
public int widthMin = UNSET;