瀏覽代碼

紧急呼叫仅显示房间号

weizhengliang 3 年之前
父節點
當前提交
84aa852aca

+ 2 - 0
home/src/main/code/com/wdkl/ncs/android/component/home/adapter/NewEventItemAdapter.kt

@@ -146,6 +146,8 @@ class NewEventItemAdapter(var data:ArrayList<InteractionVO>, val activity: Activ
                     }
                 }
                 TcpType.SOS.name->{
+                    binding.eliRoomName.text = itemData.fromFrameFullName.substringBefore("-")
+                    binding.eliMemberName.text = ""
                     binding.eliEventName.setTextColor(activity.resources.getColor(R.color.warn_orange))
                     binding.eliImRead.visibility = View.GONE
                     binding.eliEventResponse.visibility = View.VISIBLE

+ 4 - 0
home/src/main/code/com/wdkl/ncs/android/component/home/adapter/WatchCallRecordsItemAdapter.kt

@@ -85,6 +85,8 @@ class WatchCallRecordsItemAdapter(val data: ArrayList<InteractionVO>) : BaseDele
                 }
 
                 if(itemData.actionType == TcpType.SOS.name){ //sos紧急呼叫 已处理
+                    binding.sickbedTv.text = itemData.fromFrameFullName.substringBefore("-")
+                    binding.nameTv.text = ""
                     binding.playTv.visibility = View.GONE
                     binding.projectTv.visibility = View.VISIBLE
                     binding.conductorNameTv.visibility = View.VISIBLE
@@ -144,6 +146,8 @@ class WatchCallRecordsItemAdapter(val data: ArrayList<InteractionVO>) : BaseDele
                 }
 
                 if(itemData.actionType == TcpType.SOS.name){ //sos紧急呼叫 未处理
+                    binding.sickbedTv.text = itemData.fromFrameFullName.substringBefore("-")
+                    binding.nameTv.text = ""
                     binding.playTv.visibility = View.GONE
                     binding.projectTv.visibility = View.VISIBLE
                     binding.projectTv.text = "SOS"