diff --git a/README.md b/README.md index f535e3d..603fa7b 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ See the [Roadmap](https://github.com/TonicArtos/SuperSLiM/wiki/Roadmap) for more Add the following to your build.gradle file. ```groovy dependencies { - compile 'com.tonicartos:superslim:0.4.8' + compile 'com.tonicartos:superslim:0.4.9' } ``` diff --git a/gradle.properties b/gradle.properties index 2a88c5e..e12926c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -17,8 +17,8 @@ # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true -VERSION_NAME=0.4.8 -VERSION_CODE=19 +VERSION_NAME=0.4.9 +VERSION_CODE=21 GROUP=com.tonicartos POM_GENERATE_UNIQUE_SNAPSHOTS=false diff --git a/library/src/main/java/com/tonicartos/superslim/LayoutManager.java b/library/src/main/java/com/tonicartos/superslim/LayoutManager.java index fa68d9a..128f26a 100644 --- a/library/src/main/java/com/tonicartos/superslim/LayoutManager.java +++ b/library/src/main/java/com/tonicartos/superslim/LayoutManager.java @@ -338,7 +338,7 @@ public int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, LayoutParams params = (LayoutParams) end.getLayoutParams(); SectionLayoutManager slm = getSlm(params); final int endEdge = slm.getLowestEdge( - params.getTestedFirstPosition(), getChildCount() - 1, leadingEdge); + params.getTestedFirstPosition(), getChildCount() - 1, getDecoratedBottom(end)); if (endEdge < height - getPaddingBottom() && getPosition(end) == (state.getItemCount() - 1)) { return 0;