短剧页面关闭直播小窗

This commit is contained in:
18401019693 2024-02-16 10:30:35 +08:00
parent 22769b981d
commit b3a02f8c2c
2 changed files with 9 additions and 2 deletions

View File

@ -9,9 +9,9 @@ ext {
] ]
manifestPlaceholders = [ manifestPlaceholders = [
// //
// serverHost : "https://napi.yaoulive.com", serverHost : "https://napi.yaoulive.com",
// //
serverHost : " https://ceshi.yaoulive.com", // serverHost : " https://ceshi.yaoulive.com",
// //

View File

@ -8,9 +8,11 @@ import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction; import androidx.fragment.app.FragmentTransaction;
import com.alibaba.android.arouter.facade.annotation.Route; import com.alibaba.android.arouter.facade.annotation.Route;
import com.lzf.easyfloat.EasyFloat;
import com.yunbao.common.activity.AbsActivity; import com.yunbao.common.activity.AbsActivity;
import com.yunbao.common.utils.L; import com.yunbao.common.utils.L;
import com.yunbao.common.utils.RouteUtil; import com.yunbao.common.utils.RouteUtil;
import com.yunbao.common.views.floatingview.APPEasyFloat;
import com.yunbao.main.R; import com.yunbao.main.R;
import com.yunbao.main.fragment.MainHomeCommunityVideoFragment; import com.yunbao.main.fragment.MainHomeCommunityVideoFragment;
@ -36,6 +38,11 @@ public class MainHomeCommunityActivity extends AbsActivity {
FT.replace(R.id.fragment, communityVideoFragment);//替换碎片 FT.replace(R.id.fragment, communityVideoFragment);//替换碎片
FT.addToBackStack(null);//是否启动回退栈 FT.addToBackStack(null);//是否启动回退栈
FT.commit();//提交 FT.commit();//提交
//判断是否有直播悬浮窗有直接关闭
if (EasyFloat.isShow("LiveFloatView")) {
EasyFloat.dismiss("LiveFloatView", true);
}
APPEasyFloat.getInstance().dismiss(mContext);
} }