修复:直播结束滚动问题

This commit is contained in:
18401019693 2023-01-10 17:22:15 +08:00
parent aca98cb7e6
commit 420573736d

View File

@ -624,8 +624,12 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
public void removeLiveEnd() { public void removeLiveEnd() {
if (mLiveEndViewHolder != null) {
mLiveEndViewHolder.removeFromParent();
mLiveEndViewHolder.release();
}
mLiveEndViewHolder = null;
if (mLiveAudienceViewHolder != null) { if (mLiveAudienceViewHolder != null) {
mLiveAudienceViewHolder.removeFromParent(); mLiveAudienceViewHolder.removeFromParent();
mLiveAudienceViewHolder.removeCallbacks(); mLiveAudienceViewHolder.removeCallbacks();
mLiveAudienceViewHolder.release(); mLiveAudienceViewHolder.release();
@ -641,17 +645,12 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
mLiveRoomViewHolder.clearData(); mLiveRoomViewHolder.clearData();
mLiveRoomViewHolder.countDownTimerTrickery = null; mLiveRoomViewHolder.countDownTimerTrickery = null;
} }
if (mLiveEndViewHolder != null) {
mLiveEndViewHolder.removeFromParent();
mLiveEndViewHolder.release();
}
mLiveEndViewHolder = null;
mLiveAudienceViewHolder = null; mLiveAudienceViewHolder = null;
mLivePlayViewHolder = null;
mLiveRoomViewHolder = null; mLiveRoomViewHolder = null;
mLiveLinkMicPresenter = null; mLiveLinkMicPresenter = null;
mLiveLinkMicAnchorPresenter = null; mLiveLinkMicAnchorPresenter = null;
mLiveRyLinkMicPkPresenter = null; mLiveRyLinkMicPkPresenter = null;
mLivePlayViewHolder = null;
} }
@Override @Override
@ -670,27 +669,24 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
if (mLiveAudienceViewHolder != null) { if (mLiveAudienceViewHolder != null) {
mLiveAudienceViewHolder.removeCallbacks(); mLiveAudienceViewHolder.removeCallbacks();
} }
//断开socket //断开socket
if (mSocketRyClient != null) { if (mSocketRyClient != null) {
mSocketRyClient.disConnect(); mSocketRyClient.disConnect();
mSocketRyClient = null; mSocketRyClient = null;
} }
if (mSocketClient != null) { if (mSocketClient != null) {
mSocketClient.disConnect(); mSocketClient.disConnect();
mSocketClient = null; mSocketClient = null;
} }
if (mLiveLinkMicPresenter != null) { if (mLiveLinkMicPresenter != null) {
mLiveLinkMicPresenter.clearData(); mLiveLinkMicPresenter.clearData();
mLiveLinkMicPresenter.release(); mLiveLinkMicPresenter.release();
mLiveLinkMicPresenter = null;
} }
if (mLiveLinkMicAnchorPresenter != null) { if (mLiveLinkMicAnchorPresenter != null) {
mLiveLinkMicAnchorPresenter.clearData(); mLiveLinkMicAnchorPresenter.clearData();
mLiveLinkMicAnchorPresenter.release(); mLiveLinkMicAnchorPresenter.release();
mLiveLinkMicAnchorPresenter = null;
} }
if (mLiveRyLinkMicPkPresenter != null) { if (mLiveRyLinkMicPkPresenter != null) {
mLiveRyLinkMicPkPresenter.clearData(); mLiveRyLinkMicPkPresenter.clearData();
@ -698,10 +694,9 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
mLiveRyLinkMicPkPresenter = null; mLiveRyLinkMicPkPresenter = null;
} }
if (mLiveEndViewHolder != null) { if (mLiveEndViewHolder != null) {
mLiveEndViewHolder.removeFromParent(); removeLiveEnd();
mLiveEndViewHolder.release();
} }
mLiveEndViewHolder = null;
if (isQuit) { if (isQuit) {
isQuitF = true; isQuitF = true;
if (mLiveAudienceViewHolder != null) { if (mLiveAudienceViewHolder != null) {