From 98122c25d80fdcb68c19e18ffb10a6f813126bf7 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Mon, 5 Dec 2022 17:39:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96LiveUserMoreDialogFragment.ac?= =?UTF-8?q?tivity=E5=BC=BA=E5=BC=95=E7=94=A8=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E5=86=85=E5=AD=98=E6=B3=84=E6=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/main/java/com/yunbao/common/Constants.java | 1 - live/src/main/java/com/yunbao/live/activity/LiveActivity.java | 2 -- .../com/yunbao/live/dialog/LiveUserMoreDialogFragment.java | 1 - .../main/java/com/yunbao/live/views/LivePlayRyViewHolder.java | 3 ++- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/Constants.java b/common/src/main/java/com/yunbao/common/Constants.java index d6ac40f00..2f36c14e1 100644 --- a/common/src/main/java/com/yunbao/common/Constants.java +++ b/common/src/main/java/com/yunbao/common/Constants.java @@ -289,6 +289,5 @@ public class Constants { public static String isSetRemarkText = "";//修改的备注信息 public static boolean isShowLiveDialog = false;//是否在直播间打开单聊 public static int firstInto = 0;// - public static long runTime = System.currentTimeMillis(); } diff --git a/live/src/main/java/com/yunbao/live/activity/LiveActivity.java b/live/src/main/java/com/yunbao/live/activity/LiveActivity.java index 9ad278b22..cf5954bb7 100644 --- a/live/src/main/java/com/yunbao/live/activity/LiveActivity.java +++ b/live/src/main/java/com/yunbao/live/activity/LiveActivity.java @@ -1280,7 +1280,6 @@ public abstract class LiveActivity extends AbsActivity implements SocketMessageL bundle.putBoolean("showBuyView", !showBuyView); fragment.setArguments(bundle); fragment.show(getSupportFragmentManager(), "LiveUserMoreDialogFragment"); - LiveUserMoreDialogFragment.activity = (LiveActivity) mContext; outRankHideFirst = false; } @@ -1302,7 +1301,6 @@ public abstract class LiveActivity extends AbsActivity implements SocketMessageL bundle.putString("outRankHide", GsonUtils.toJson(outRankHide)); fragment.setArguments(bundle); fragment.show(getSupportFragmentManager(), "LiveUserMoreDialogFragment"); - LiveUserMoreDialogFragment.activity = this; } diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveUserMoreDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/LiveUserMoreDialogFragment.java index 98a39b92f..93ca57183 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveUserMoreDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveUserMoreDialogFragment.java @@ -59,7 +59,6 @@ public class LiveUserMoreDialogFragment extends AbsDialogFragment implements Vie private String mLiveUid; private String stream; private LiveGuardInfo mLiveGuardInfo; - public static LiveActivity activity = null; public eightbitlab.com.blurview.BlurView blurView; public TextView audience_btn, guard_btn, fans_btn, tags, btn, gz_view, dayRank, weekRank, title; diff --git a/live/src/main/java/com/yunbao/live/views/LivePlayRyViewHolder.java b/live/src/main/java/com/yunbao/live/views/LivePlayRyViewHolder.java index 7962eb64f..6c53de969 100644 --- a/live/src/main/java/com/yunbao/live/views/LivePlayRyViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LivePlayRyViewHolder.java @@ -34,6 +34,7 @@ import com.tencent.live2.V2TXLivePlayerObserver; import com.tencent.live2.impl.V2TXLivePlayerImpl; import com.tencent.rtmp.ui.TXCloudVideoView; import com.yunbao.common.Constants; +import com.yunbao.common.bean.CrashSaveBean; import com.yunbao.common.http.HttpCallback; import com.yunbao.common.http.HttpClient; import com.yunbao.common.utils.DeviceUtils; @@ -360,7 +361,7 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder { "剩余内存:" + DeviceUtils.getMemory(mContext) + "\n" + "分辨率:" + statistics.height + "x" + statistics.width + "\n" + "播放状态:" + mPlayer.isPlaying() + "\n" + - "运行时间:" + (System.currentTimeMillis()- Constants.runTime)/1000 + "\n"; + "运行时间:" + (System.currentTimeMillis()- CrashSaveBean.getInstance().getStartTime())/1000 + "\n"; debugView.setText(debugText); Log.i(TAG, "onStatisticsUpdate: " + JSON.toJSONString(statistics) + " |当前下载数 : " + OkDownload.getInstance().getTaskMap().size() + buffer); if (statistics.height > statistics.width) {