From 35444b5ae8419e3514b968714790f093ab026f95 Mon Sep 17 00:00:00 2001 From: MikeAfc Date: Thu, 26 Sep 2019 14:43:19 +0800 Subject: [PATCH] Avoid use of arrayMap which may cause class cast exception. --- gradle.properties | 2 +- .../alibaba/android/vlayout/extend/ViewLifeCycleHelper.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 89805eee..a5f24bd1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -44,7 +44,7 @@ GROUP=com.alibaba.android ARTIFACT=vlayout VERSION=1 -VERSION_NAME=1.2.30 +VERSION_NAME=1.2.31 PACKAGING_TYPE=aar useNewSupportLibrary=true systemProp.compileSdkVersion=26 diff --git a/vlayout/src/main/java/com/alibaba/android/vlayout/extend/ViewLifeCycleHelper.java b/vlayout/src/main/java/com/alibaba/android/vlayout/extend/ViewLifeCycleHelper.java index 6a248d42..7cd204ff 100644 --- a/vlayout/src/main/java/com/alibaba/android/vlayout/extend/ViewLifeCycleHelper.java +++ b/vlayout/src/main/java/com/alibaba/android/vlayout/extend/ViewLifeCycleHelper.java @@ -6,6 +6,8 @@ import com.alibaba.android.vlayout.VirtualLayoutManager; +import java.util.HashMap; + public class ViewLifeCycleHelper { public enum STATUS { APPEARING, @@ -14,7 +16,7 @@ public enum STATUS { DISAPPEARED } - private ArrayMap mViewStatusMap = new ArrayMap<>(); + private HashMap mViewStatusMap = new HashMap<>(); private ViewLifeCycleListener mViewLifeCycleListener;