房间消息提醒弹窗显示逻辑优化
This commit is contained in:
@@ -368,7 +368,8 @@ public class BottomView extends FrameLayout implements View.OnClickListener {
|
||||
}
|
||||
|
||||
private void showMsgPopup(View parent, RecentContact recentContact) {
|
||||
if (parent == null || recentContact == null || recentContact.getUnreadCount() == 0) return;
|
||||
if (parent == null || recentContact == null || recentContact.getUnreadCount() == 0 || !isAttachedToWindow())
|
||||
return;
|
||||
if (getContext() instanceof Activity && ((Activity) getContext()).isFinishing()) return;
|
||||
|
||||
UserInfo userInfo = NimUIKit.getUserInfoProvider().getUserInfo(recentContact.getFromAccount());
|
||||
|
Reference in New Issue
Block a user