按需求修改
This commit is contained in:
@@ -518,6 +518,12 @@ public class LiveAudienceActivity extends LiveActivity {
|
||||
GiftCacheUtil.getInstance().pause();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onStop() {
|
||||
super.onStop();
|
||||
manager.onStop();
|
||||
}
|
||||
|
||||
/**
|
||||
* 点亮
|
||||
*/
|
||||
@@ -812,6 +818,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
||||
intent.putExtra("url", url);
|
||||
intent.putExtra("isFull", true);
|
||||
mContext.startActivity(intent);
|
||||
manager.setQuitF(true);
|
||||
break;
|
||||
case LIVE_ROOM_EXCEPTION:
|
||||
//主播未直播时自动下滑至下一个直播间
|
||||
@@ -824,6 +831,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
||||
break;
|
||||
case REPORT:
|
||||
LiveReportActivity.forward(mContext, event.getBean().getUid());
|
||||
manager.setQuitF(true);
|
||||
break;
|
||||
case POPULAR:
|
||||
url = CommonAppConfig.HOST + "/h5/activity/PopularityTask/index.html";
|
||||
@@ -888,6 +896,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
||||
* @param type 1、官方通知 2、互动信息 3、在线客服
|
||||
*/
|
||||
private void toSysMsgWeb(String type) {
|
||||
manager.setQuitF(true);
|
||||
ImHttpUtil.getImUserInfo("", new HttpCallback() {
|
||||
|
||||
@SuppressLint("MissingPermission")
|
||||
@@ -917,6 +926,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
||||
.putExtra("uid", "")
|
||||
.putExtra("title", "")
|
||||
.putExtra("headImg", ""));
|
||||
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@ import com.blankj.utilcode.util.GsonUtils;
|
||||
import com.facebook.appevents.AppEventsLogger;
|
||||
import com.lzf.easyfloat.EasyFloat;
|
||||
import com.lzf.easyfloat.permission.PermissionUtils;
|
||||
import com.lzf.easyfloat.utils.LifecycleUtils;
|
||||
import com.tencent.imsdk.v2.V2TIMCallback;
|
||||
import com.tencent.imsdk.v2.V2TIMManager;
|
||||
import com.yunbao.common.CommonAppConfig;
|
||||
@@ -400,9 +401,13 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
||||
|
||||
@Override
|
||||
public void onPause() {
|
||||
// if (mLivePlayViewHolder != null)
|
||||
// mLivePlayViewHolder.onPause();
|
||||
if (mLiveBean != null && !isQuitF) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStop() {
|
||||
boolean isForeground = LifecycleUtils.INSTANCE.isForeground();
|
||||
if (mLiveBean != null && !isQuitF && !isForeground) {
|
||||
LiveFloatView.getInstance()
|
||||
.cacheLiveData(mLiveBean, mLiveType, mLiveSDK, mLiveTypeVal)
|
||||
.builderSystemFloat(mContext, mLiveBean.getPull());
|
||||
@@ -411,11 +416,6 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
||||
isQuitF = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStop() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
|
||||
|
||||
@@ -369,8 +369,8 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerInParent="true"
|
||||
android:visibility="invisible"
|
||||
android:src="@mipmap/live_icon_newpeople_en" />
|
||||
android:src="@mipmap/live_icon_newpeople_en"
|
||||
android:visibility="invisible" />
|
||||
|
||||
<View
|
||||
android:id="@+id/live_new_people_red_dot"
|
||||
|
||||
Reference in New Issue
Block a user