调整直播间UI

修复进入直播间快速退出导致的闪退问题
This commit is contained in:
2023-04-08 14:57:22 +08:00
parent 2b62d018b5
commit a8178c51a0
7 changed files with 28 additions and 27 deletions

View File

@@ -1449,7 +1449,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
public void onAnimationEnd(Animation animation) {
if (hide) {
mAnchorSayImage.setTag(mAnchorSay.getX());
mAnchorSay.setX(-DpUtil.dp2px(45));
mAnchorSay.setX(-DpUtil.dp2px(53));
mAnchorSayImage.setVisibility(View.INVISIBLE);
mAnchorSayText.setVisibility(View.INVISIBLE);
mAnchorSayHide.setImageResource(R.mipmap.ic_live_anchor_say_hide);

View File

@@ -254,7 +254,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
loading.setVisibility(View.GONE);
enterRoomLeaveHandler.post(enterRoomLeaveRunnable);
if (topBannerRunnable != null) {
topBannerHandler.postDelayed(topBannerRunnable, 6000);
topBannerHandler.postDelayed(topBannerRunnable, 1000);
}
}
};
@@ -417,7 +417,12 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
}
mLivePlayViewHolder.setAnchorPlayModel(anchorClarityType);
//是否热度卡加成
liveHandler.postDelayed(() -> mLiveRoomViewHolder.getIsHot(data.getIsUseHotCard()), 700);
liveHandler.postDelayed(() -> {
if(mLiveRoomViewHolder==null){
return;
}
mLiveRoomViewHolder.getIsHot(data.getIsUseHotCard());
}, 700);
//延时1秒发送
liveHandler.postDelayed(sendFIm, 700);
@@ -1945,11 +1950,12 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
}
}
public void wishListProgress(WishModel wishListProgress, String userNiceName,int level) {
public void wishListProgress(WishModel wishListProgress, String userNiceName, int level) {
if (mLiveRoomViewHolder != null) {
mLiveRoomViewHolder.wishListProgress(wishListProgress, userNiceName,level);
mLiveRoomViewHolder.wishListProgress(wishListProgress, userNiceName, level);
}
}
public void showXydComplete(XydCompleteModel model) {
if (mLiveRoomViewHolder != null) {
mLiveRoomViewHolder.showXydComplete(model);