|
|
@@ -264,16 +264,19 @@ class LiveBroadcastActivity :
|
|
|
runOnUiThread {
|
|
|
if (msg != null) {
|
|
|
if (msg.isRead.not()) {
|
|
|
- Log.e("wpp", "--------------------------------" + GsonUtil.GsonString(msg))
|
|
|
makeMessageAsRead(msg)
|
|
|
if (msg.elemType == V2TIMMessage.V2TIM_ELEM_TYPE_CUSTOM) {
|
|
|
val customElem = msg.customElem
|
|
|
if (customElem != null && customElem.data != null) {
|
|
|
val data = String(customElem.data)
|
|
|
+ val description = customElem.description
|
|
|
if (TextUtils.isEmpty(data).not()) {
|
|
|
val messageBean =
|
|
|
GsonUtil.GsonToBean(data, MessageBean::class.java)
|
|
|
if (messageBean != null) {
|
|
|
+ if (TextUtils.isEmpty(description).not()) {
|
|
|
+ messageBean.description = description
|
|
|
+ }
|
|
|
if (TextUtils.equals("live", messageBean.businessID)) {
|
|
|
binding.statusLayout.visibility = View.VISIBLE
|
|
|
} else if (TextUtils.equals(
|
|
|
@@ -281,8 +284,8 @@ class LiveBroadcastActivity :
|
|
|
messageBean.businessID
|
|
|
)
|
|
|
) {
|
|
|
- if (TextUtils.isEmpty(messageBean.data).not()) {
|
|
|
- showGameTasksDialog(messageBean.data)
|
|
|
+ if (TextUtils.isEmpty(messageBean.description).not()) {
|
|
|
+ showGameTasksDialog(messageBean.description)
|
|
|
}
|
|
|
}
|
|
|
}
|