FIx view lifecycle of sticky layout helper.

This commit is contained in:
MikeAfc
2019-04-22 19:18:23 +08:00
parent bbd2ba4513
commit 8a5a51d9d2
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -44,9 +44,9 @@
GROUP=com.alibaba.android
ARTIFACT=vlayout
VERSION=1
VERSION_NAME=1.2.22
VERSION_NAME=1.2.23
PACKAGING_TYPE=aar
useNewSupportLibrary=true
systemProp.compileSdkVersion=25
systemProp.targetSdkVersion=25
systemProp.buildToolsVersion=25.0.3
systemProp.compileSdkVersion=26
systemProp.targetSdkVersion=26
systemProp.buildToolsVersion=26.0.2
@@ -709,8 +709,8 @@ public class StickyLayoutHelper extends FixAreaLayoutHelper {
public void onClear(LayoutManagerHelper helper) {
super.onClear(helper);
if (mFixView != null) {
helper.removeChildView(mFixView);
helper.recycleView(mFixView);
helper.removeChildView(mFixView);
mFixView = null;
}
}