Merge branch 'fix/GHZSCY-6470' into 'dev'
fix: 搜索配置顺序显示问题 https://jira.shanqu.cc/browse/GHZSCY-6470 See merge request halo/android/assistant-android!1825
This commit is contained in:
@ -80,10 +80,12 @@ class SearchGameResultViewModel(
|
||||
.subscribe({ mutableList ->
|
||||
mSearchSubjects.addAll(mutableList)
|
||||
mSearchSubjects.forEach {
|
||||
itemDataList.add(
|
||||
if (it.location <= 0 || it.location >= itemDataList.size) itemDataList.size else it.location - 1,
|
||||
SearchItemData(subject = it)
|
||||
)
|
||||
val item = SearchItemData(subject = it)
|
||||
if (it.location <= 0 || it.location > itemDataList.size) {
|
||||
itemDataList.add(item)
|
||||
} else {
|
||||
itemDataList.add(it.location - 1, item)
|
||||
}
|
||||
}
|
||||
// 处理初始化列表且游戏列表size为0的情况
|
||||
handleLoadStatusWhenGameListIsEmpty(list, itemDataList)
|
||||
|
||||
Reference in New Issue
Block a user