From a5acbb01461ae1554370c8b32963a6d23c852ac8 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 21 Mar 2024 15:11:48 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=B1=8F=E8=94=BD=E7=9C=8B=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E9=A1=B5=E9=9D=A2=E6=89=93=E6=8B=9B=E5=91=BC=E5=BC=B9?= =?UTF-8?q?=E6=A1=86?= 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 +++++ .../com/yunbao/common/utils/MessageSayHiNotifyManager.java | 1 - 2 files changed, 5 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 bed092f..85297ae 100644 --- a/app/src/main/java/com/shayu/phonelive/AppContext.java +++ b/app/src/main/java/com/shayu/phonelive/AppContext.java @@ -67,6 +67,7 @@ import com.yunbao.main.activity.MainActivity; import com.yunbao.main.activity.MainHomeCommunityActivity; import com.yunbao.main.activity.MsgSettActivity; import com.yunbao.main.activity.PDLiveConversationActivity; +import com.yunbao.video.activity.VideoPlayActivity; import org.greenrobot.eventbus.EventBus; @@ -126,6 +127,10 @@ public class AppContext extends CommonAppContext { MessageSayHiNotifyManager.getInstance().stop(); return; } + if(activity instanceof VideoPlayActivity){ + MessageSayHiNotifyManager.getInstance().stop(); + return; + } MessageSayHiNotifyManager.getInstance().reload(); } diff --git a/common/src/main/java/com/yunbao/common/utils/MessageSayHiNotifyManager.java b/common/src/main/java/com/yunbao/common/utils/MessageSayHiNotifyManager.java index 64d4596..918e5da 100644 --- a/common/src/main/java/com/yunbao/common/utils/MessageSayHiNotifyManager.java +++ b/common/src/main/java/com/yunbao/common/utils/MessageSayHiNotifyManager.java @@ -76,7 +76,6 @@ public class MessageSayHiNotifyManager { Log.i(TAG, "onSuccess: 定时器为关,不再轮训"); return; } - data.setNextTime(RandomUtil.nextInt(30)); hiBean = data; showDialog(data); }