Skip to content

Commit d638712

Browse files
committed
Make v0.4.8 release.
2 parents 8a9a8ab + 29b0675 commit d638712

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ See the [Roadmap](https://github.com/TonicArtos/SuperSLiM/wiki/Roadmap) for more
2929
Add the following to your build.gradle file.
3030
```groovy
3131
dependencies {
32-
compile 'com.tonicartos:superslim:0.4.7'
32+
compile 'com.tonicartos:superslim:0.4.8'
3333
}
3434
```
3535

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1818
# org.gradle.parallel=true
1919

20-
VERSION_NAME=0.4.7
21-
VERSION_CODE=17
20+
VERSION_NAME=0.4.8
21+
VERSION_CODE=19
2222
GROUP=com.tonicartos
2323

2424
POM_GENERATE_UNIQUE_SNAPSHOTS=false

library/src/main/java/com/tonicartos/superslim/LayoutManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State
252252
mRequestPositionOffset = 0;
253253
} else {
254254
View anchorView = getAnchorChild();
255-
requestedPosition = anchorView == null ? 0 : getPosition(anchorView);
255+
requestedPosition = anchorView == null ?
256+
0 : Math.min(getPosition(anchorView), itemCount - 1);
256257
borderLine = getBorderLine(anchorView, Direction.END);
257258
}
258259

0 commit comments

Comments
 (0)