修复问题

This commit is contained in:
18401019693 2023-07-04 17:02:05 +08:00
parent b3fb6e62ae
commit c139b03417
3 changed files with 8 additions and 2 deletions

View File

@ -1243,7 +1243,7 @@ Limited ride And limited avatar frame</string>
<string name="anchor_his_heart">贈送主播禮物表達心意</string>
<string name="red_packet_countdown">倒計時:%s</string>
<string name="open_red_packet">待開紅包:%s</string>
<string name="together_to_achieve_goal">來自%s的獎勵齊心協力連成目標</string>
<string name="together_to_achieve_goal">%s的紅包</string>
<string name="red_too_bad">很遺憾</string>
<string name="red_too_bad2">與紅包擦肩而過</string>
<string name="check_out_your_luck">查看大家手氣</string>

View File

@ -1452,6 +1452,12 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
} else {
redPacketQueue.setVisibility(View.VISIBLE);
redPacketCountdown.setVisibility(View.GONE);
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append(mRedPacketModel.getRedPacketRemain() )
.append("/")
.append(mRedPacketModel.getRedPacketQuantity());
redSchedule.setText(stringBuffer.toString());
openRedPacket.setText(String.format(mContext.getString(R.string.open_red_packet), mRedPacketModel.getRedPacketCount()+ ""));
}
if (IMLoginManager.get(mContext).getUserInfo().anchorUserType() && mContext instanceof LiveRyAnchorActivity) {
anchorTimeHandler.removeCallbacks(anchorTimeRunnable);

View File

@ -22,6 +22,6 @@ public class RedPacketGiftViewHolder extends RecyclerView.ViewHolder {
public void showData(RedPacketGiftModel redPacketGiftModel) {
ImgLoader.displayAvatar(itemView.getContext(), redPacketGiftModel.getGifticon(), giftIcon);
giftName.setText(redPacketGiftModel.getGiftNum());
giftName.setText("X"+redPacketGiftModel.getGiftNum());
}
}