-
Notifications
You must be signed in to change notification settings - Fork 666
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from esmasui/master
Fixed to set mPosition to ViewHolder
- Loading branch information
Showing
2 changed files
with
14 additions
and
21 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
lib/src/main/java/android/support/v7/widget/ViewHolderDelegate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package android.support.v7.widget; | ||
|
||
public abstract class ViewHolderDelegate { | ||
|
||
private ViewHolderDelegate() { | ||
throw new UnsupportedOperationException("no instances"); | ||
} | ||
|
||
public static void setPosition(RecyclerView.ViewHolder viewHolder, int position) { | ||
viewHolder.mPosition = position; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters