Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
MFlisar committed Jan 25, 2017
1 parent efbab5c commit d7c1434
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ It's a simple one class `TouchListener` that can be attached to any RecyclerView

```groovy
dependencies {
compile 'com.github.MFlisar:DragSelectRecyclerView:0.1'
compile 'com.github.MFlisar:DragSelectRecyclerView:0.2'
}
```

Expand Down Expand Up @@ -47,7 +47,7 @@ It's a simple one class `TouchListener` that can be attached to any RecyclerView
2. attach it to the `RecyclerView`

```
recyclerView.addOnItemTouchListener(mDragSelectTouchListener);
recyclerView.startDragSelection(mDragSelectTouchListener);
```

3. on item long press, inform the listener so that it can start doing it's magic
Expand Down
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ android {
compileSdkVersion 24
buildToolsVersion "24.0.2"
defaultConfig {
minSdkVersion 16
minSdkVersion 14
targetSdkVersion 24
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public DragSelectTouchListener withDebug(boolean enabled)
*
* @param position the index of the first selected item
*/
public void setStartSelectPosition(int position)
public void startDragSelection(int position)
{
setIsActive(true);
mStart = position;
Expand Down

0 comments on commit d7c1434

Please sign in to comment.