Skip to content

Commit

Permalink
Fix: fixed the add with position but position doesn't work.
Browse files Browse the repository at this point in the history
  • Loading branch information
pokk committed Mar 27, 2019
1 parent f667d61 commit d571ceb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ please. There is a simple sample for this library. 😄
It's very easy to import, you just put them into your gradle file.

```gradle
compile "com.devrapid.jieyi:adaptiverecyclerview:1.0.12"
compile "com.devrapid.jieyi:adaptiverecyclerview:1.0.13"
```

## Maven
Expand All @@ -114,7 +114,7 @@ compile "com.devrapid.jieyi:adaptiverecyclerview:1.0.12"
<dependency>
<groupId>com.devrapid.jieyi</groupId>
<artifactId>adaptiverecyclerview</artifactId>
<version>1.0.12</version>
<version>1.0.13</version>
<type>pom</type>
</dependency>
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ abstract class AdaptiveAdapter<VT : ViewTypeFactory, M : IVisitable<VT>, VH : Re
open fun add(position: Int, item: M) {
queue.add(Message<M>().also {
it.type = MESSAGE_ADD_SINGLE
it.position = position
it.newItem = item
})
runUpdateTask()
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ proj_name=adaptiverecyclerview
proj_libname=AdaptiveRecyclerview
proj_group=com.devrapid.jieyi
proj_artifactid=adaptiverecyclerview
proj_version=1.0.12
proj_version=1.0.13
proj_description=Create an adaptive recycler view for each of type view.
proj_websiteurl=https://github.com/pokk/AdaptiveRecyclerView
proj_issuetrackerurl=https://github.com/pokk/AdaptiveRecyclerView/issues
Expand Down

0 comments on commit d571ceb

Please sign in to comment.