diff --git a/gradle.properties b/gradle.properties index 554fc322..344d4031 100644 --- a/gradle.properties +++ b/gradle.properties @@ -44,7 +44,7 @@ GROUP=com.alibaba.android ARTIFACT=vlayout VERSION=1 -VERSION_NAME=1.2.20 +VERSION_NAME=1.2.21 PACKAGING_TYPE=aar useNewSupportLibrary=true systemProp.compileSdkVersion=25 diff --git a/vlayout/src/main/java/com/alibaba/android/vlayout/VirtualLayoutManager.java b/vlayout/src/main/java/com/alibaba/android/vlayout/VirtualLayoutManager.java index 6e23c2b9..96db6593 100644 --- a/vlayout/src/main/java/com/alibaba/android/vlayout/VirtualLayoutManager.java +++ b/vlayout/src/main/java/com/alibaba/android/vlayout/VirtualLayoutManager.java @@ -676,10 +676,6 @@ public void setViewLifeCycleListener(@NonNull ViewLifeCycleListener viewLifeCycl throw new IllegalArgumentException("ViewLifeCycleListener should not be null!"); } - if (recycleOffset == 0) { - throw new IllegalArgumentException("ViewLifeCycleListener should work with virtualLayoutManager.setRecycleOffset()!"); - } - mViewLifeCycleHelper = new ViewLifeCycleHelper(this, viewLifeCycleListener); }