Skip to content

Commit

Permalink
Merge pull request bauerca#46 from Goonie/reset-cursor-mapping
Browse files Browse the repository at this point in the history
add method to reset cursor mapping
  • Loading branch information
bauerca committed Nov 16, 2012
2 parents 05460d1 + 6b0a388 commit a814746
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ public void changeCursor(Cursor cursor) {
resetMappings();
}

/**
* Resets list-cursor mapping.
*/
public void reset() {
resetMappings();
notifyDataSetChanged();
}

private void resetMappings() {
mListMapping.clear();
mRemovedCursorPositions.clear();
Expand Down

0 comments on commit a814746

Please sign in to comment.