This repository was archived by the owner on Apr 14, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +13
-9
lines changed
bannerlib/src/main/java/cn/levey/bannerlib/manager Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ github [rxbanner_demo.apk](https://github.com/leveychen
53
53
### 2.导入引用  ;  ;  ;  ; [ ![ ] ( https://jitpack.io/v/leveychen/RxBanner.svg )] ( https://jitpack.io/#leveychen/RxBanner )
54
54
55
55
``` xml
56
- implementation 'com.github.leveychen:RxBanner:1.1.3 '
56
+ implementation 'com.github.leveychen:RxBanner:1.1.4 '
57
57
```
58
58
[ LATEST RELEASE] ( https://github.com/leveychen/RxBanner/releases/latest )
59
59
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ github [rxbanner_demo.apk](https://github.com/leveychen
35
35
### Step 2. Add the ` dependency `   ;  ;  ;  ; [ ![ ] ( https://jitpack.io/v/leveychen/RxBanner.svg )] ( https://jitpack.io/#leveychen/RxBanner )
36
36
37
37
``` xml
38
- implementation 'com.github.leveychen:RxBanner:1.1.3 '
38
+ implementation 'com.github.leveychen:RxBanner:1.1.4 '
39
39
```
40
40
[ LATEST RELEASE] ( https://github.com/leveychen/RxBanner/releases/latest )
41
41
Original file line number Diff line number Diff line change 6
6
import android .view .animation .DecelerateInterpolator ;
7
7
import android .widget .Scroller ;
8
8
9
- import cn .levey .bannerlib .base .RxBannerLogger ;
10
9
import cn .levey .bannerlib .data .RxBannerGlobalConfig ;
11
10
import cn .levey .bannerlib .impl .RxBannerChangeListener ;
12
11
import cn .levey .bannerlib .impl .RxBannerIndicatorChangeListener ;
@@ -163,8 +162,13 @@ void setupCallbacks() throws IllegalStateException {
163
162
* Called when the instance of a {@link RecyclerView} is detached.
164
163
*/
165
164
void destroyCallbacks () {
166
- mRecyclerView .removeOnScrollListener (mScrollListener );
167
- mRecyclerView .setOnFlingListener (null );
165
+ if (mRecyclerView !=null ) {
166
+ if (mScrollListener != null ) {
167
+ mRecyclerView .removeOnScrollListener (mScrollListener );
168
+ }
169
+ mRecyclerView .setOnFlingListener (null );
170
+
171
+ }
168
172
}
169
173
170
174
private int currentPosition = 0 ; //记录当前位置,防止一次滑动多个item
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ buildscript {
8
8
jcenter()
9
9
}
10
10
dependencies {
11
- classpath ' com.android.tools.build:gradle:3.2.0-rc03 '
11
+ classpath ' com.android.tools.build:gradle:3.2.1 '
12
12
classpath ' com.github.dcendents:android-maven-gradle-plugin:2.1'
13
13
classpath ' com.diffplug.spotless:spotless-plugin-gradle:3.14.0'
14
14
@@ -32,10 +32,10 @@ task clean(type: Delete) {
32
32
33
33
34
34
ext {
35
- versionCode = 113
36
- versionName = ' 1.1.3 '
35
+ versionCode = 114
36
+ versionName = ' 1.1.4 '
37
37
minSdkVersion = 16
38
38
targetSdkVersion = 28
39
39
compileSdkVersion = 28
40
- supportVersion = ' 28.0.0-rc02 '
40
+ supportVersion = ' 28.0.0'
41
41
}
You can’t perform that action at this time.
0 commit comments