From 631be1bd8905eee78e229f17e5aa490dd76bf027 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Tue, 26 Mar 2024 14:23:50 +0800 Subject: [PATCH] =?UTF-8?q?fix=20[=E8=B7=A8=E8=AE=BE=E5=A4=87=E5=B7=B2?= =?UTF-8?q?=E8=AF=BB=E6=B6=88=E6=81=AF=E4=BE=9D=E6=97=A7=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E9=97=AE=E9=A2=98]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/shayu/phonelive/AppContext.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/shayu/phonelive/AppContext.java b/app/src/main/java/com/shayu/phonelive/AppContext.java index d5fb0b326..192cab24c 100644 --- a/app/src/main/java/com/shayu/phonelive/AppContext.java +++ b/app/src/main/java/com/shayu/phonelive/AppContext.java @@ -127,7 +127,7 @@ public class AppContext extends CommonAppContext { MessageSayHiNotifyManager.getInstance().stop(); return; } - if(activity instanceof VideoPlayActivity){ + if (activity instanceof VideoPlayActivity) { MessageSayHiNotifyManager.getInstance().stop(); return; } @@ -281,6 +281,9 @@ public class AppContext extends CommonAppContext { if (AppManager.getInstance().getLastActivity() instanceof CompleteUserInfoActivity) { return false; } + if (message.getReceivedStatus().isRead()) { + return false; + } MessageChatNotifyManager.getInstance().push(AppManager.getInstance().getLastActivity() , message.getTargetId(), content.getContent()