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); }