Skip to content

Commit 932fe54

Browse files
committed
Add animators null judgment
1 parent 0cc40a7 commit 932fe54

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ android {
88
applicationId "com.wang.avi.sample"
99
minSdkVersion 11
1010
targetSdkVersion 23
11-
versionCode 22
12-
versionName "2.0.2"
11+
versionCode 23
12+
versionName "2.0.3"
1313
}
1414
buildTypes {
1515
release {

library/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
defaultConfig {
88
minSdkVersion 11
99
targetSdkVersion 23
10-
versionCode 22
11-
versionName "2.0.2"
10+
versionCode 23
11+
versionName "2.0.3"
1212
}
1313
buildTypes {
1414
release {
@@ -26,7 +26,7 @@ dependencies {
2626

2727
ext {
2828
PUBLISH_GROUP_ID = 'com.wang.avi'
29-
PUBLISH_VERSION = '2.0.2'
29+
PUBLISH_VERSION = '2.0.3'
3030
PUBLISH_DES = 'Nice loading animations for Android'
3131
LIB_NAME = 'AVLoadingIndicatorView'
3232

library/src/main/java/com/wang/avi/Indicator.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,12 @@ private void startAnimators() {
106106
}
107107

108108
private void stopAnimators() {
109-
if (mAnimators==null){
110-
return;
111-
}
112-
for (ValueAnimator animator : mAnimators) {
113-
if (animator != null && animator.isStarted()) {
114-
animator.removeAllUpdateListeners();
115-
animator.end();
109+
if (mAnimators!=null){
110+
for (ValueAnimator animator : mAnimators) {
111+
if (animator != null && animator.isStarted()) {
112+
animator.removeAllUpdateListeners();
113+
animator.end();
114+
}
116115
}
117116
}
118117
}

0 commit comments

Comments
 (0)