fix: 修复消息界面加载更多失效
This commit is contained in:
parent
b2b85bfcda
commit
95afb6954a
|
|
@ -48,7 +48,6 @@
|
||||||
android:name=".App"
|
android:name=".App"
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
android:dataExtractionRules="@xml/data_extraction_rules"
|
android:dataExtractionRules="@xml/data_extraction_rules"
|
||||||
android:enableOnBackInvokedCallback="true"
|
|
||||||
android:fullBackupContent="@xml/backup_descriptor"
|
android:fullBackupContent="@xml/backup_descriptor"
|
||||||
android:icon="@mipmap/ic_launcher_new"
|
android:icon="@mipmap/ic_launcher_new"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
|
|
|
||||||
|
|
@ -186,9 +186,16 @@ class MessageFragment : BaseFragment(), Refreshable, OnTabSelectedListener,
|
||||||
} else {
|
} else {
|
||||||
adapter.addData(it)
|
adapter.addData(it)
|
||||||
}
|
}
|
||||||
smartRefreshLayout.finishRefresh(true)
|
if (reload) {
|
||||||
if (it.page?.hasMore != "1") {
|
smartRefreshLayout.finishRefresh(true)
|
||||||
smartRefreshLayout.finishRefreshWithNoMoreData()
|
if (it.page?.hasMore != "1") {
|
||||||
|
smartRefreshLayout.finishRefreshWithNoMoreData()
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
smartRefreshLayout.finishLoadMore(true)
|
||||||
|
if (it.page?.hasMore != "1") {
|
||||||
|
smartRefreshLayout.finishLoadMoreWithNoMoreData()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}.doIfFailure {
|
}.doIfFailure {
|
||||||
if (reload) {
|
if (reload) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue