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