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

Commit

Permalink
1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
levey_ddzx committed Nov 20, 2018
1 parent 0f4b25f commit d0d22fa
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -53,7 +53,7 @@ github      [rxbanner_demo.apk](https://github.com/leveychen
### 2.导入引用    [![](https://jitpack.io/v/leveychen/RxBanner.svg)](https://jitpack.io/#leveychen/RxBanner)

```xml
implementation 'com.github.leveychen:RxBanner:1.1.3'
implementation 'com.github.leveychen:RxBanner:1.1.4'
```
[LATEST RELEASE](https://github.com/leveychen/RxBanner/releases/latest)

Expand Down
2 changes: 1 addition & 1 deletion README_EN.md
Expand Up @@ -35,7 +35,7 @@ github      [rxbanner_demo.apk](https://github.com/leveychen
### Step 2. Add the `dependency`     [![](https://jitpack.io/v/leveychen/RxBanner.svg)](https://jitpack.io/#leveychen/RxBanner)

```xml
implementation 'com.github.leveychen:RxBanner:1.1.3'
implementation 'com.github.leveychen:RxBanner:1.1.4'
```
[LATEST RELEASE](https://github.com/leveychen/RxBanner/releases/latest)

Expand Down
Expand Up @@ -6,7 +6,6 @@
import android.view.animation.DecelerateInterpolator;
import android.widget.Scroller;

import cn.levey.bannerlib.base.RxBannerLogger;
import cn.levey.bannerlib.data.RxBannerGlobalConfig;
import cn.levey.bannerlib.impl.RxBannerChangeListener;
import cn.levey.bannerlib.impl.RxBannerIndicatorChangeListener;
Expand Down Expand Up @@ -163,8 +162,13 @@ void setupCallbacks() throws IllegalStateException {
* Called when the instance of a {@link RecyclerView} is detached.
*/
void destroyCallbacks() {
mRecyclerView.removeOnScrollListener(mScrollListener);
mRecyclerView.setOnFlingListener(null);
if(mRecyclerView !=null) {
if(mScrollListener != null) {
mRecyclerView.removeOnScrollListener(mScrollListener);
}
mRecyclerView.setOnFlingListener(null);

}
}

private int currentPosition = 0; //记录当前位置,防止一次滑动多个item
Expand Down
8 changes: 4 additions & 4 deletions build.gradle
Expand Up @@ -8,7 +8,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0-rc03'
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'com.diffplug.spotless:spotless-plugin-gradle:3.14.0'

Expand All @@ -32,10 +32,10 @@ task clean(type: Delete) {


ext {
versionCode = 113
versionName = '1.1.3'
versionCode = 114
versionName = '1.1.4'
minSdkVersion = 16
targetSdkVersion = 28
compileSdkVersion = 28
supportVersion = '28.0.0-rc02'
supportVersion = '28.0.0'
}

0 comments on commit d0d22fa

Please sign in to comment.