Skip to content

Commit

Permalink
Merge pull request #14 from Fueled/feat-all-items
Browse files Browse the repository at this point in the history
Add method to get all items from adapter
  • Loading branch information
Hussein Aladeen authored Mar 1, 2018
2 parents 67b6aea + e4bcbde commit 6793789
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion reclaim/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'

group = 'com.github.fueled'
version = '1.2.1'
version = '1.2.2'

android {
compileSdkVersion compileSdk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@ public BaseItem getItem(int position) {
return items.get(position);
}

/**
* Returns a list of all items currently in the adapter
*/
public List<BaseItem> getItems() {
return items;
}

@Override
public BaseViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) {

Expand Down

0 comments on commit 6793789

Please sign in to comment.