fix: 修改语音列表不显示
This commit is contained in:
parent
375cc4709b
commit
804b893489
@ -43,7 +43,6 @@ class EvaluationResultFragment : BaseFragment(), View.OnClickListener {
|
||||
viewModel.listDataChatMsgEntityList.observe(viewLifecycleOwner) {
|
||||
adapter.refreshData(it)
|
||||
}
|
||||
viewModel.getChatMsgEntityList()
|
||||
return binding.root
|
||||
}
|
||||
|
||||
@ -106,7 +105,6 @@ class EvaluationResultFragment : BaseFragment(), View.OnClickListener {
|
||||
} else {
|
||||
viewModel.initNewData("")
|
||||
}
|
||||
|
||||
// //监听大分类数据变化
|
||||
// viewModel.liveDataClassTypeList.observe(viewLifecycleOwner) {
|
||||
// if (it == null || it.isEmpty()) {
|
||||
|
@ -337,6 +337,8 @@ class EvaluationResultViewModel @Inject constructor(
|
||||
}
|
||||
}
|
||||
}
|
||||
// 显示语音数据到界面
|
||||
getChatMsgEntityList()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -13,21 +13,29 @@ import com.navinfo.omqs.bean.TableInfo
|
||||
class LayerManagerExpandableListAdapter(private val context: Context, private val parentItems: List<ImportConfig>) :
|
||||
BaseExpandableListAdapter() {
|
||||
|
||||
override fun getGroupCount(): Int = parentItems.size
|
||||
override fun getGroupCount(): Int {
|
||||
return parentItems.size
|
||||
}
|
||||
|
||||
override fun getChildrenCount(groupPosition: Int): Int =
|
||||
parentItems[groupPosition].tables.size
|
||||
override fun getChildrenCount(groupPosition: Int): Int {
|
||||
return parentItems[groupPosition].tables.size
|
||||
}
|
||||
|
||||
override fun getGroup(groupPosition: Int): Any = parentItems[groupPosition]
|
||||
|
||||
override fun getChild(groupPosition: Int, childPosition: Int): Any =
|
||||
parentItems[groupPosition].tables[childPosition]
|
||||
override fun getGroup(groupPosition: Int): Any {
|
||||
return parentItems[groupPosition]
|
||||
}
|
||||
|
||||
override fun getChild(groupPosition: Int, childPosition: Int): Any {
|
||||
return parentItems[groupPosition].tables[childPosition]
|
||||
}
|
||||
|
||||
|
||||
override fun getGroupId(groupPosition: Int): Long = groupPosition.toLong()
|
||||
|
||||
override fun getChildId(groupPosition: Int, childPosition: Int): Long = childPosition.toLong()
|
||||
|
||||
override fun hasStableIds(): Boolean = true
|
||||
override fun hasStableIds(): Boolean = false
|
||||
|
||||
override fun getGroupView(
|
||||
groupPosition: Int,
|
||||
|
Loading…
x
Reference in New Issue
Block a user