|
@@ -426,7 +426,10 @@ class RecipesFragment : CommonBVMFragment<FragmentCommeListBinding, HomeViewMode
|
|
|
binding.page.finishRefresh()
|
|
|
binding.rv.apply {
|
|
|
models = it
|
|
|
- scrollToPosition(0)
|
|
|
+ post {
|
|
|
+ scrollToPosition(0)
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
scopeNet {
|
|
|
delay(300)
|
|
@@ -439,7 +442,9 @@ class RecipesFragment : CommonBVMFragment<FragmentCommeListBinding, HomeViewMode
|
|
|
binding.page.finishRefresh()
|
|
|
binding.rv.apply {
|
|
|
models = it
|
|
|
- scrollToPosition(0)
|
|
|
+ post {
|
|
|
+ scrollToPosition(0)
|
|
|
+ }
|
|
|
}
|
|
|
scopeNet {
|
|
|
delay(300)
|
|
@@ -468,7 +473,6 @@ class RecipesFragment : CommonBVMFragment<FragmentCommeListBinding, HomeViewMode
|
|
|
updateCategoryName(categoryDataList[0])
|
|
|
updateSortName(0, false)
|
|
|
filterRv?.models = categoryDataList
|
|
|
- binding.rv.scrollToPosition(0)
|
|
|
}
|
|
|
|
|
|
//获取线上热门标签回调
|
|
@@ -482,7 +486,11 @@ class RecipesFragment : CommonBVMFragment<FragmentCommeListBinding, HomeViewMode
|
|
|
finishRefresh()
|
|
|
}
|
|
|
binding.rv.models = it
|
|
|
- binding.rv.scrollToPosition(0)
|
|
|
+ binding.rv.apply {
|
|
|
+ post {
|
|
|
+ scrollToPosition(0)
|
|
|
+ }
|
|
|
+ }
|
|
|
loadingDialog.removeSelf()
|
|
|
}
|
|
|
}
|