Skip to content

Commit

Permalink
Bug fixes #136
Browse files Browse the repository at this point in the history
  • Loading branch information
dkzwm committed Sep 9, 2021
1 parent aa122cc commit 222bcc3
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 20 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
添加如下依赖到你的 build.gradle 文件:
```
dependencies {
implementation 'com.github.dkzwm:srl-core:1.7.2.3'
implementation 'com.github.dkzwm:srl-ext-classics:1.7.2.3'
implementation 'com.github.dkzwm:srl-ext-material:1.7.2.3'
implementation 'com.github.dkzwm:srl-ext-dynamic-rebound:1.7.2.3'
implementation 'com.github.dkzwm:srl-ext-horizontal:1.7.2.3'
implementation 'com.github.dkzwm:srl-ext-two-level:1.7.2.3'
implementation 'com.github.dkzwm:srl-ext-util:1.7.2.3'
implementation 'com.github.dkzwm:srl-core:1.7.2.4'
implementation 'com.github.dkzwm:srl-ext-classics:1.7.2.4'
implementation 'com.github.dkzwm:srl-ext-material:1.7.2.4'
implementation 'com.github.dkzwm:srl-ext-dynamic-rebound:1.7.2.4'
implementation 'com.github.dkzwm:srl-ext-horizontal:1.7.2.4'
implementation 'com.github.dkzwm:srl-ext-two-level:1.7.2.4'
implementation 'com.github.dkzwm:srl-ext-util:1.7.2.4'
}
```

Expand Down
14 changes: 7 additions & 7 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ A highly efficient refresh library for Android.Can support all Views.It's easy t
Add the following dependency to your build.gradle file:
```
dependencies {
implementation 'com.github.dkzwm:srl-core:1.7.2.3'
implementation 'com.github.dkzwm:srl-ext-classics:1.7.2.3'
implementation 'com.github.dkzwm:srl-ext-material:1.7.2.3'
implementation 'com.github.dkzwm:srl-ext-dynamic-rebound:1.7.2.3'
implementation 'com.github.dkzwm:srl-ext-horizontal:1.7.2.3'
implementation 'com.github.dkzwm:srl-ext-two-level:1.7.2.3'
implementation 'com.github.dkzwm:srl-ext-util:1.7.2.3'
implementation 'com.github.dkzwm:srl-core:1.7.2.4'
implementation 'com.github.dkzwm:srl-ext-classics:1.7.2.4'
implementation 'com.github.dkzwm:srl-ext-material:1.7.2.4'
implementation 'com.github.dkzwm:srl-ext-dynamic-rebound:1.7.2.4'
implementation 'com.github.dkzwm:srl-ext-horizontal:1.7.2.4'
implementation 'com.github.dkzwm:srl-ext-two-level:1.7.2.4'
implementation 'com.github.dkzwm:srl-ext-util:1.7.2.4'
}
```

Expand Down
Binary file modified apk/demo.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ ext {
buildToolsVersion: "30.0.3",
minSdkVersion : 14,
targetSdkVersion : 30,
versionCode : 79,
versionName : "1.7.2.3"
versionCode : 80,
versionName : "1.7.2.4"
]
libs = [
recyclerview: "androidx.recyclerview:recyclerview:1.1.0-beta04",
Expand Down
10 changes: 6 additions & 4 deletions core/src/main/java/me/dkzwm/widget/srl/SmoothRefreshLayout.java
Original file line number Diff line number Diff line change
Expand Up @@ -2865,10 +2865,12 @@ public void computeScroll() {
@Override
public boolean canScrollVertically(int direction) {
if (isVerticalOrientation()) {
if (direction < 0) {
return super.canScrollVertically(direction) || isNotYetInEdgeCannotMoveHeader();
} else {
return super.canScrollVertically(direction) || isNotYetInEdgeCannotMoveFooter();
if (mAppBarLayoutUtil == null || mAppBarLayoutUtil != mInEdgeCanMoveHeaderCallBack) {
if (direction < 0) {
return super.canScrollVertically(direction) || isNotYetInEdgeCannotMoveHeader();
} else {
return super.canScrollVertically(direction) || isNotYetInEdgeCannotMoveFooter();
}
}
}
return super.canScrollVertically(direction);
Expand Down
2 changes: 2 additions & 0 deletions ext/UPDATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# 更新日志
## 1.7.2.4
> 修复#136,修正默认配置下特性情况下AppBarLayout拖动问题。
## 1.7.2.3
> 修复#136,修正参数传递错误。
## 1.7.2.2
Expand Down

0 comments on commit 222bcc3

Please sign in to comment.