Browse Source

| addData 可空

drake 5 years ago
parent
commit
83d7918fa4
2 changed files with 2 additions and 2 deletions
  1. 1 1
      README.md
  2. 1 1
      net/src/main/java/com/drake/net/scope/PageCoroutineScope.kt

+ 1 - 1
README.md

@@ -80,7 +80,7 @@ implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.0'
 // 支持自动下拉刷新和缺省页的, 可选, 刷新头和上拉加载参考SmartRefreshLayout
 implementation 'com.github.liangjingkanji:BRV:1.2.1'
 
-implementation 'com.github.liangjingkanji:Net:2.0.8'
+implementation 'com.github.liangjingkanji:Net:2.0.9'
 ```
 
 

+ 1 - 1
net/src/main/java/com/drake/net/scope/PageCoroutineScope.kt

@@ -78,7 +78,7 @@ class PageCoroutineScope(
      * @param hasMore 如果不传数据, 默认已加载完全部 (建议此时可以关闭[PageRefreshLayout]的加载更多功能)
      */
     fun addData(
-        data: List<Any>,
+        data: List<Any?>?,
         bindingAdapter: BindingAdapter? = null,
         hasMore: BindingAdapter.() -> Boolean = { false }
     ) {