From a632e48d388644147793e2d3820969bc62edb9b4 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Sat, 29 Oct 2022 15:58:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E6=92=AD=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/common/views/weight/LiveFloatView.java | 3 +++ .../main/java/com/yunbao/live/views/PortraitLiveManager.java | 1 + 2 files changed, 4 insertions(+) diff --git a/common/src/main/java/com/yunbao/common/views/weight/LiveFloatView.java b/common/src/main/java/com/yunbao/common/views/weight/LiveFloatView.java index 3eff44af7..162ca425f 100644 --- a/common/src/main/java/com/yunbao/common/views/weight/LiveFloatView.java +++ b/common/src/main/java/com/yunbao/common/views/weight/LiveFloatView.java @@ -3,6 +3,7 @@ package com.yunbao.common.views.weight; import android.app.Activity; import android.os.Bundle; import android.os.Handler; +import android.text.TextUtils; import android.util.Log; import android.view.Gravity; import android.view.View; @@ -59,6 +60,7 @@ public class LiveFloatView implements Function1 { public void builderFloat(Activity mContext, String url, Class back) { this.mContext = mContext; this.url = url; + if (TextUtils.isEmpty(url)) return; APPEasyFloat.getInstance().layout(R.layout.view_flaot_live) .dragEnable(true) .setAutoMoveToEdge(true) @@ -126,6 +128,7 @@ public class LiveFloatView implements Function1 { liveOnInvokeView = new LiveOnInvokeView(); this.mContext = mContext; this.url = url; + if (TextUtils.isEmpty(url)) return; EasyFloat.with(mContext) .setTag(TAG) .setLayout(R.layout.view_flaot_live, liveOnInvokeView) diff --git a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java index 241ede468..67b717693 100644 --- a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java +++ b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java @@ -750,6 +750,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe } mLiveBean.setIsattention(isattention + ""); mLiveEndViewHolder.showData(mLiveBean, mLiveBean.getStream()); + mLiveBean.setPull(null); } @Override