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

Commit

Permalink
Fix get touchSlop from ViewConfiguration may cause exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAfc committed Oct 8, 2018
1 parent 22b5bdc commit 4555062
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Expand Up @@ -45,7 +45,7 @@ org.gradle.jvmargs=-Xmx2048m
GROUP=com.alibaba.android
ARTIFACT=virtualview
VERSION=1
VERSION_NAME=1.3.7
VERSION_NAME=1.3.8
PACKAGING_TYPE=aar
systemProp.compileSdkVersion=26
systemProp.targetSdkVersion=26
Expand Down
Expand Up @@ -105,7 +105,12 @@ public VafContext(Context context, boolean coreOnly) {
mContainerService.setPageContext(this);
}
mImageLoader = ImageLoader.build(context);
SLOP = ViewConfiguration.get(context).getScaledTouchSlop();
try {
SLOP = ViewConfiguration.get(context).getScaledTouchSlop();
} catch (Exception e) {
e.printStackTrace();
SLOP = 8;
}
}

public void init(Context context) {
Expand Down

0 comments on commit 4555062

Please sign in to comment.