Skip to content

Commit b361fb7

Browse files
author
Chris Banes
committed
Make OverscrollHelper public so it can be used in the extras packages
1 parent cfd61ed commit b361fb7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/src/com/handmark/pulltorefresh/library/OverscrollHelper.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import com.handmark.pulltorefresh.library.PullToRefreshBase.Mode;
2323

2424
@TargetApi(9)
25-
final class OverscrollHelper {
25+
public final class OverscrollHelper {
2626

2727
static final String LOG_TAG = "OverscrollHelper";
2828
static final float DEFAULT_OVERSCROLL_SCALE = 1f;
@@ -53,7 +53,7 @@ final class OverscrollHelper {
5353
* - true if this scroll operation is the result of a touch
5454
* event, passed through from from overScrollBy call
5555
*/
56-
static void overScrollBy(final PullToRefreshBase<?> view, final int deltaX, final int scrollX, final int deltaY,
56+
public static void overScrollBy(final PullToRefreshBase<?> view, final int deltaX, final int scrollX, final int deltaY,
5757
final int scrollY, final boolean isTouchEvent) {
5858
overScrollBy(view, deltaX, scrollX, deltaY, scrollY, 0, isTouchEvent);
5959
}
@@ -83,7 +83,7 @@ static void overScrollBy(final PullToRefreshBase<?> view, final int deltaX, fina
8383
* - true if this scroll operation is the result of a touch
8484
* event, passed through from from overScrollBy call
8585
*/
86-
static void overScrollBy(final PullToRefreshBase<?> view, final int deltaX, final int scrollX, final int deltaY,
86+
public static void overScrollBy(final PullToRefreshBase<?> view, final int deltaX, final int scrollX, final int deltaY,
8787
final int scrollY, final int scrollRange, final boolean isTouchEvent) {
8888
overScrollBy(view, deltaX, scrollX, deltaY, scrollY, scrollRange, 0, DEFAULT_OVERSCROLL_SCALE, isTouchEvent);
8989
}
@@ -118,7 +118,7 @@ static void overScrollBy(final PullToRefreshBase<?> view, final int deltaX, fina
118118
* - true if this scroll operation is the result of a touch
119119
* event, passed through from from overScrollBy call
120120
*/
121-
static void overScrollBy(final PullToRefreshBase<?> view, final int deltaX, final int scrollX, final int deltaY,
121+
public static void overScrollBy(final PullToRefreshBase<?> view, final int deltaX, final int scrollX, final int deltaY,
122122
final int scrollY, final int scrollRange, final int fuzzyThreshold, final float scaleFactor,
123123
final boolean isTouchEvent) {
124124

0 commit comments

Comments
 (0)