diff --git a/common/src/main/java/com/yunbao/common/manager/imrongcloud/MessageIMManager.java b/common/src/main/java/com/yunbao/common/manager/imrongcloud/MessageIMManager.java index d430a08f1..ab87b670e 100644 --- a/common/src/main/java/com/yunbao/common/manager/imrongcloud/MessageIMManager.java +++ b/common/src/main/java/com/yunbao/common/manager/imrongcloud/MessageIMManager.java @@ -77,18 +77,23 @@ public class MessageIMManager { UnReadMessageManager.getInstance().addObserver(conversationTypes, new UnReadMessageManager.IUnReadMessageObserver() { @Override public void onCountChanged(int integer) { - +/* if (!IMLoginManager.get(mContext).hintChat()) { imNumber = integer; //发送通知 unreadMessagesHandler.post(essagesRunnable); } +*/ + imNumber = integer; + //发送通知 + unreadMessagesHandler.post(essagesRunnable); } }); } - public void resetImUnReadMessageCount(Context mContext){ + + public void resetImUnReadMessageCount(Context mContext) { RongIMClient.getInstance().getUnreadCount(new Conversation.ConversationType[]{ Conversation.ConversationType.PRIVATE }, new RongIMClient.ResultCallback() { diff --git a/common/src/main/res/layout/view_message_say_hi_now_notify.xml b/common/src/main/res/layout/view_message_say_hi_now_notify.xml index 3c6116cb6..97b02300b 100644 --- a/common/src/main/res/layout/view_message_say_hi_now_notify.xml +++ b/common/src/main/res/layout/view_message_say_hi_now_notify.xml @@ -36,6 +36,7 @@ app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" + android:scaleType="centerCrop" app:layout_constraintTop_toTopOf="parent" app:ri_ratio="1" app:riv_oval="true" /> diff --git a/main/src/main/java/com/yunbao/main/views/MainMessageViewHolder.java b/main/src/main/java/com/yunbao/main/views/MainMessageViewHolder.java index 2ff440ad7..6b35e0f9a 100644 --- a/main/src/main/java/com/yunbao/main/views/MainMessageViewHolder.java +++ b/main/src/main/java/com/yunbao/main/views/MainMessageViewHolder.java @@ -231,7 +231,7 @@ public class MainMessageViewHolder extends AbsMainViewHolder { @Override public void run() { netHandler.post(imUserInfoRunnable); - if (IMLoginManager.get(mContext).hintChat()) { + if (IMLoginManager.get(mContext).hintChat()&&false) { container.setVisibility(View.GONE); ltNodataMsg.setVisibility(View.VISIBLE); } else {