Skip to content

Commit

Permalink
1.修复一个自动绑定的bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazunyang committed Sep 14, 2021
1 parent a210d44 commit d0576fa
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
buildscript {
ext {
gradle_version = "4.2.2"
kotlin_version = "1.5.21"
kotlin_version = "1.5.30"
}
repositories {
maven { url 'https://maven.aliyun.com/repository/google' }
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 @@ kotlin.code.style=obsolete
org.gradle.daemon=false

GROUP=cn.numeron
VERSION_NAME=1.1.0
VERSION_NAME=1.1.2

POM_NAME=recyclerview.adapter
POM_DESCRIPTION=Quickly\40create\40RecyclerView.Adapter\40auxiliary\40tools.
Expand Down
6 changes: 0 additions & 6 deletions jitpack.yml

This file was deleted.

4 changes: 2 additions & 2 deletions recyclerview.adapter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ android {

dependencies {
api 'cn.numeron:common:1.0.5'
api 'cn.numeron:stateless.livedata:1.0.2'
compileOnly 'androidx.paging:paging-runtime-ktx:3.1.0-alpha03'
api 'cn.numeron:stateless.livedata:1.0.3'
compileOnly 'androidx.paging:paging-runtime-ktx:3.0.1'
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ open class AutomaticBindingHolder<T : Identifiable<*>, DB : ViewDataBinding>(bin
}

override fun binding(position: Int) {
val item = list.getItem(position)
val item = list.getOrNull(position)
bindItemMethods[dataBindingClassName]?.invoke(binding, item)
bindClickMethods[dataBindingClassName]?.invoke(binding, clickEvent)
binding.executePendingBindings()
Expand Down

0 comments on commit d0576fa

Please sign in to comment.