Skip to content

Commit 5715705

Browse files
committed
- Added documentation, CHANGELOG, FEATURES, and bumped public version for the new feature
1 parent 337fc2d commit 5715705

4 files changed

Lines changed: 8 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1515
- Added possibility to let the library handle the savedInstanceState in order to keep the selection in place when orientation
1616
and other configuration change
1717
- Added `deselect(int position)` method to the MultiChoiceAdapter
18+
- Added `refreshDataSet()` method to the MultiChoiceAdapter in order to be able to keep a valid internal state of the selected/deselected items. This will then delegate the actual `RecyclerView.Adapter#notifyDataSetChanged()` to do the rest.
19+
1820

1921
### Fixed
2022
### Deleted

FEATURES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,7 @@ It will automatically keep the selection in place when orientation and other con
8585

8686
// Mode
8787
boolean isInSingleClickMode()
88+
89+
// Extra
90+
void refreshDataSet()
8891
```

library/multichoicerecyclerview/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ checkstyle {
88
}
99

1010
ext {
11-
PUBLISH_VERSION = '2.3.0'
11+
PUBLISH_VERSION = '2.4.0'
1212
SUPPORT_LIBRARY_VERSION = '24.2.1'
1313
BUILD_TOOLS = "25.0.0"
1414
TARGET_SDK = 23

library/multichoicerecyclerview/src/main/java/com/davidecirillo/multichoicerecyclerview/MultiChoiceAdapter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ public void onRestoreInstanceState(Bundle savedInstanceState) {
168168
}
169169

170170
/**
171-
*
171+
* Use this method instead of {@link RecyclerView.Adapter#notifyDataSetChanged()}
172+
* and it'll automatically handle the list refresh without loosing current item state
172173
*/
173174
public void refreshDataSet() {
174175
refreshDataSetInternal();

0 commit comments

Comments
 (0)