Skip to content

Commit

Permalink
* update to FastAdapter v1.6.0
Browse files Browse the repository at this point in the history
 * implement `isAutoExpanding` from FastAdapter v1.6.0
  • Loading branch information
mikepenz committed Jul 7, 2016
1 parent c2858db commit b28fc24
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ dependencies {
// used to fill the RecyclerView with the DrawerItems
// and provides single and multi selection, expandable items
// https://github.com/mikepenz/FastAdapter
compile 'com.mikepenz:fastadapter:1.5.8@aar'
compile 'com.mikepenz:fastadapter:1.6.0@aar'
}
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,17 @@ public boolean isExpanded() {
return mExpanded;
}


/**
* overwrite this method and return true if the item should auto expand on click, false if you want to disable this
*
* @return true if this item should auto expand in the adapter
*/
@Override
public boolean isAutoExpanding() {
return true;
}

/**
* the abstract method to retrieve the ViewHolder factory
* The ViewHolder factory implementation should look like (see the commented code above)
Expand Down

0 comments on commit b28fc24

Please sign in to comment.