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