Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Commit

Permalink
Avoid use of arrayMap which may cause class cast exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAfc committed Sep 26, 2019
1 parent 99af2e0 commit 35444b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

import com.alibaba.android.vlayout.VirtualLayoutManager;

import java.util.HashMap;

public class ViewLifeCycleHelper {
public enum STATUS {
APPEARING,
Expand All @@ -14,7 +16,7 @@ public enum STATUS {
DISAPPEARED
}

private ArrayMap<View, STATUS> mViewStatusMap = new ArrayMap<>();
private HashMap<View, STATUS> mViewStatusMap = new HashMap<>();

private ViewLifeCycleListener mViewLifeCycleListener;

Expand Down

0 comments on commit 35444b5

Please sign in to comment.