Skip to content

Commit

Permalink
Update to version 1.0.3: add notifyDataSetChanged & make updateSectio…
Browse files Browse the repository at this point in the history
…n handle section size updates

- Add notifyDataSetChanged method to BaseSectionAdapter
Previosly, there was no correct way to notify about complete
reset of data in adapter.

- Make SectionManager.updateSection handle section size updates
Old implemenation of updateSection was expecting that section size
remains the same. Now it handles such changes and updates
sectionToPosSum properly.
  • Loading branch information
lizapopova committed Aug 30, 2020
1 parent ffb4581 commit 6ee1cf5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ You can find demo project code [here](https://github.com/crux-lab/sectioned-recy
The Gradle dependency is available via [jCenter](https://bintray.com/cruxlab/SectionedRecyclerView/SectionedRecyclerView). Add this to your module's `build.gradle` file:

```gradle
implementation 'com.cruxlab:sectionedrecyclerview:1.0.2'
implementation 'com.cruxlab:sectionedrecyclerview:1.0.3'
```

### Initialization
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ dependencies {
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:2.0.1'
implementation 'com.android.support:recyclerview-v7:26.1.0'
//implementation 'com.cruxlab:sectionedrecyclerview:1.0.2'
implementation project(':sectionedrecyclerview');
implementation 'com.cruxlab:sectionedrecyclerview:1.0.3'
//implementation project(':sectionedrecyclerview');
}
2 changes: 1 addition & 1 deletion sectionedrecyclerview/publish.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'

version '1.0.2'
version '1.0.3'
group 'com.cruxlab'

publishing {
Expand Down

0 comments on commit 6ee1cf5

Please sign in to comment.