调整直播间UI
修复进入直播间快速退出导致的闪退问题
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user