|
@@ -76,11 +76,11 @@ class WatchCallRecordsItemAdapter(val data: ArrayList<InteractionVO>) : BaseDele
|
|
//判断是呼入还是呼出 1 分机到主机 2主机到分机
|
|
//判断是呼入还是呼出 1 分机到主机 2主机到分机
|
|
if (itemData.fromDeviceMemberId == Constants.memberId){
|
|
if (itemData.fromDeviceMemberId == Constants.memberId){
|
|
binding.sickbedTv.text = itemData.toFrameFullName
|
|
binding.sickbedTv.text = itemData.toFrameFullName
|
|
- binding.nameTv.text = itemData.toMemberName
|
|
|
|
|
|
+ binding.nameTv.text = "To: " + itemData.toMemberName
|
|
binding.callStatusImagev.setImageResource(R.drawable.hu_chu_yi_jie)
|
|
binding.callStatusImagev.setImageResource(R.drawable.hu_chu_yi_jie)
|
|
} else {
|
|
} else {
|
|
binding.sickbedTv.text = itemData.fromFrameFullName
|
|
binding.sickbedTv.text = itemData.fromFrameFullName
|
|
- binding.nameTv.text = itemData.fromMemberName
|
|
|
|
|
|
+ binding.nameTv.text = "From: " + itemData.fromMemberName
|
|
binding.callStatusImagev.setImageResource(R.drawable.hu_ru_yi_jie)
|
|
binding.callStatusImagev.setImageResource(R.drawable.hu_ru_yi_jie)
|
|
}
|
|
}
|
|
|
|
|
|
@@ -109,7 +109,7 @@ class WatchCallRecordsItemAdapter(val data: ArrayList<InteractionVO>) : BaseDele
|
|
binding.conductorNameTv.visibility = View.GONE
|
|
binding.conductorNameTv.visibility = View.GONE
|
|
binding.playTv.setBackgroundResource(R.drawable.yi_bo_fang)
|
|
binding.playTv.setBackgroundResource(R.drawable.yi_bo_fang)
|
|
//检查是否自己发的留言
|
|
//检查是否自己发的留言
|
|
- if (Constants.deviceId == itemData.fromDeviceId) {
|
|
|
|
|
|
+ if (itemData.fromDeviceMemberId == Constants.memberId) {
|
|
binding.processingTimeTv.text = "对方已播放"
|
|
binding.processingTimeTv.text = "对方已播放"
|
|
} else {
|
|
} else {
|
|
binding.processingTimeTv.text = "已播放"
|
|
binding.processingTimeTv.text = "已播放"
|
|
@@ -138,13 +138,13 @@ class WatchCallRecordsItemAdapter(val data: ArrayList<InteractionVO>) : BaseDele
|
|
binding.processingTimeTv.visibility = View.VISIBLE
|
|
binding.processingTimeTv.visibility = View.VISIBLE
|
|
|
|
|
|
//判断是呼入还是呼出 1 分机到主机 2主机到分机
|
|
//判断是呼入还是呼出 1 分机到主机 2主机到分机
|
|
- if(Constants.memberId!=itemData.fromDeviceMemberId){
|
|
|
|
|
|
+ if(Constants.memberId != itemData.fromDeviceMemberId){
|
|
binding.sickbedTv.text = itemData.fromFrameFullName
|
|
binding.sickbedTv.text = itemData.fromFrameFullName
|
|
- binding.nameTv.text = itemData.fromMemberName
|
|
|
|
|
|
+ binding.nameTv.text = "From: " + itemData.fromMemberName
|
|
binding.callStatusImagev.setImageResource(R.drawable.hu_ru_wei_jie)
|
|
binding.callStatusImagev.setImageResource(R.drawable.hu_ru_wei_jie)
|
|
}else{
|
|
}else{
|
|
binding.sickbedTv.text = itemData.toFrameFullName
|
|
binding.sickbedTv.text = itemData.toFrameFullName
|
|
- binding.nameTv.text = itemData.toMemberName
|
|
|
|
|
|
+ binding.nameTv.text = "To: " + itemData.toMemberName
|
|
binding.callStatusImagev.setImageResource(R.drawable.hu_chu_wei_jie)
|
|
binding.callStatusImagev.setImageResource(R.drawable.hu_chu_wei_jie)
|
|
}
|
|
}
|
|
|
|
|
|
@@ -167,7 +167,7 @@ class WatchCallRecordsItemAdapter(val data: ArrayList<InteractionVO>) : BaseDele
|
|
binding.playTv.visibility = View.VISIBLE
|
|
binding.playTv.visibility = View.VISIBLE
|
|
binding.playTv.setBackgroundResource(R.drawable.wei_bo_fang)
|
|
binding.playTv.setBackgroundResource(R.drawable.wei_bo_fang)
|
|
//检查是否自己发的留言
|
|
//检查是否自己发的留言
|
|
- if (Constants.deviceId == itemData.fromDeviceId) {
|
|
|
|
|
|
+ if (itemData.fromDeviceMemberId == Constants.memberId) {
|
|
binding.processingTimeTv.text = "对方未播放"
|
|
binding.processingTimeTv.text = "对方未播放"
|
|
} else {
|
|
} else {
|
|
binding.processingTimeTv.text = "未播放"
|
|
binding.processingTimeTv.text = "未播放"
|