Remove default set max recycler pool which should be done in vlayout

This commit is contained in:
MikeAfc
2019-05-22 11:47:17 +08:00
parent 3f2c35e65a
commit 6076188287
3 changed files with 2 additions and 9 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ org.gradle.jvmargs=-Xmx1536M
GROUP=com.alibaba.android
ARTIFACT=tangram
VERSION=1
VERSION_NAME=3.4.5
VERSION_NAME=3.4.6
PACKAGING_TYPE=aar
systemProp.compileSdkVersion=26
systemProp.targetSdkVersion=26
+1 -1
View File
@@ -117,7 +117,7 @@ dependencies {
exclude group: 'com.android.support', module: 'support-annotations'
}
} else {
compile('com.alibaba.android:vlayout:1.2.23@aar') {
compile('com.alibaba.android:vlayout:1.2.24@aar') {
changing = true
}
}
@@ -183,13 +183,6 @@ public class PojoGroupBasicAdapter extends GroupBasicAdapter<Card, BaseCell> {
stringType = renderType;
}
}
if (!mStrKeys.containsKey(stringType) && mLayoutManager.getRecyclerView().getRecycledViewPool() != null) {
int newType = mTypeId.getAndIncrement();
mStrKeys.put(stringType, newType);
mId2Types.put(newType, item.stringType);
mLayoutManager.getRecyclerView().getRecycledViewPool().setMaxRecycledViews(newType, 20);
}
return mStrKeys.get(stringType);
}