Fix when GridLayout is recycled some internal states are not invalidated correctly (#104)

This commit is contained in:
Hristo Hristov
2017-08-09 15:52:52 +03:00
committed by GitHub
parent 11260a0749
commit 37b1623adc
2 changed files with 10 additions and 14 deletions

View File

@@ -11,7 +11,7 @@ def computeCompileSdkVersion () {
return compileSdk
}
else {
return 23
return 25
}
}
@@ -29,7 +29,7 @@ def computeTargetSdkVersion() {
return targetSdk
}
else {
return 23
return 25
}
}

View File

@@ -522,7 +522,6 @@ class MeasureHelper {
}
public void setInfinityWidth(boolean value) {
if (this.infinityWidth != value) {
this.infinityWidth = value;
for (int i = 0, size = this.columns.size(); i < size; i++) {
@@ -530,10 +529,8 @@ class MeasureHelper {
columnGroup.setIsLengthInfinity(value);
}
}
}
public void setInfinityHeight(boolean value) {
if (this.infinityHeight != value) {
this.infinityHeight = value;
for (int i = 0, size = this.rows.size(); i < size; i++) {
@@ -541,7 +538,6 @@ class MeasureHelper {
rowGroup.setIsLengthInfinity(value);
}
}
}
public void addMeasureSpec(MeasureSpecs measureSpec) {
// Get column stats