You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: library/multichoicerecyclerview/src/main/java/com/davidecirillo/multichoicerecyclerview/MultiChoiceAdapter.java
+13-23Lines changed: 13 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -168,11 +168,15 @@ public void onRestoreInstanceState(Bundle savedInstanceState) {
168
168
}
169
169
170
170
/**
171
-
* Use this method instead of {@link RecyclerView.Adapter#notifyDataSetChanged()}
172
-
* and it'll automatically handle the list refresh without loosing current item state
171
+
* <b>Use this method instead of {@link RecyclerView.Adapter#notifyDataSetChanged()} for
172
+
* notifying a change in the data set.</b>
173
+
*
174
+
* <b>NOTE: The new data will not keep the current selected status, all the item will be reset to INACTIVE.</b>
175
+
*
173
176
*/
174
-
publicvoidrefreshDataSet() {
175
-
refreshDataSetInternal();
177
+
publicvoidnotifyAdapterDataSetChanged() {
178
+
// TODO: 10/03/2017 Create some possible instrumentation tests around this functionality
0 commit comments