From b3a02f8c2c963f1518ab21b760bdadd5fd64607a Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Fri, 16 Feb 2024 10:30:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=AD=E5=89=A7=E9=A1=B5=E9=9D=A2=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E7=9B=B4=E6=92=AD=E5=B0=8F=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.gradle | 4 ++-- .../yunbao/main/activity/MainHomeCommunityActivity.java | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/config.gradle b/config.gradle index 58279b97c..9e6022e26 100644 --- a/config.gradle +++ b/config.gradle @@ -9,9 +9,9 @@ ext { ] manifestPlaceholders = [ //正式、 -// serverHost : "https://napi.yaoulive.com", + serverHost : "https://napi.yaoulive.com", // 测试 - serverHost : " https://ceshi.yaoulive.com", +// serverHost : " https://ceshi.yaoulive.com", //百度语音识别 diff --git a/main/src/main/java/com/yunbao/main/activity/MainHomeCommunityActivity.java b/main/src/main/java/com/yunbao/main/activity/MainHomeCommunityActivity.java index 6eb1db028..ab211b57e 100644 --- a/main/src/main/java/com/yunbao/main/activity/MainHomeCommunityActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/MainHomeCommunityActivity.java @@ -8,9 +8,11 @@ import androidx.fragment.app.FragmentManager; import androidx.fragment.app.FragmentTransaction; import com.alibaba.android.arouter.facade.annotation.Route; +import com.lzf.easyfloat.EasyFloat; import com.yunbao.common.activity.AbsActivity; import com.yunbao.common.utils.L; import com.yunbao.common.utils.RouteUtil; +import com.yunbao.common.views.floatingview.APPEasyFloat; import com.yunbao.main.R; import com.yunbao.main.fragment.MainHomeCommunityVideoFragment; @@ -36,6 +38,11 @@ public class MainHomeCommunityActivity extends AbsActivity { FT.replace(R.id.fragment, communityVideoFragment);//替换碎片 FT.addToBackStack(null);//是否启动回退栈 FT.commit();//提交 + //判断是否有直播悬浮窗,有直接关闭 + if (EasyFloat.isShow("LiveFloatView")) { + EasyFloat.dismiss("LiveFloatView", true); + } + APPEasyFloat.getInstance().dismiss(mContext); }