From 838ae0815b5a0d7c75ead849671c6e3f0b2b6ce7 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Wed, 27 Jul 2022 13:18:32 +0800 Subject: [PATCH] 11111 --- .../com/yunbao/common/manager/IMLoginManager.java | 3 +-- .../manager/imrongcloud/RongcloudIMManager.java | 3 --- .../main/res/layout/rc_conversationlist_item.xml | 6 +++--- .../imrongcloud/ConversationIMListManager.java | 8 ++++++-- .../utils/PDLiveCustomConversationProvider.java | 6 ++++++ .../main/utils/PDSightMessageItemProvider.java | 14 ++++++++++++++ .../main/res/layout/view_system_message_item.xml | 2 +- 7 files changed, 31 insertions(+), 11 deletions(-) create mode 100644 main/src/main/java/com/yunbao/main/utils/PDSightMessageItemProvider.java diff --git a/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java b/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java index ba9dadc38..4752cd0d7 100644 --- a/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java +++ b/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java @@ -124,8 +124,7 @@ public class IMLoginManager extends BaseCacheManager { * 退出登录 */ public void logout() { - //添加融云连接状态监听 - RongcloudIMManager.removeIMStatusListener(); + //删除用户登录信息 deleteByKey(KEY_USER_INFO); //用户对象置空 diff --git a/common/src/main/java/com/yunbao/common/manager/imrongcloud/RongcloudIMManager.java b/common/src/main/java/com/yunbao/common/manager/imrongcloud/RongcloudIMManager.java index 3a39d861d..1e8bb70d4 100644 --- a/common/src/main/java/com/yunbao/common/manager/imrongcloud/RongcloudIMManager.java +++ b/common/src/main/java/com/yunbao/common/manager/imrongcloud/RongcloudIMManager.java @@ -156,9 +156,6 @@ public class RongcloudIMManager { RongIM.setConnectionStatusListener(connectionStatusListener); } - public static void removeIMStatusListener() { - RongIM.setConnectionStatusListener(null); - } /** * 监听 IM 连接状态,可根据连接状态进行不同业务处理 diff --git a/live/src/main/res/layout/rc_conversationlist_item.xml b/live/src/main/res/layout/rc_conversationlist_item.xml index 0257ae7e1..7fc2a176c 100644 --- a/live/src/main/res/layout/rc_conversationlist_item.xml +++ b/live/src/main/res/layout/rc_conversationlist_item.xml @@ -87,10 +87,10 @@ + app:srcCompat="@drawable/rc_unread_count_bg_normal" />