From 0c03bbc5fb1643bf66ee2c90d2e9277a34074a0d Mon Sep 17 00:00:00 2001 From: MikeAfc Date: Tue, 5 Mar 2019 15:20:06 +0800 Subject: [PATCH] Update version. --- gradle.properties | 2 +- .../com/alibaba/android/vlayout/VirtualLayoutManager.java | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) 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); }