6.5.4礼物冠名

This commit is contained in:
18401019693 2023-08-22 14:10:09 +08:00
parent 95252f2f02
commit 75b176a81e

View File

@ -113,17 +113,28 @@ public class GiftWallItemPopup extends CenterPopupView {
vacantPositionAwaits.setText(data.getUserNicename()); vacantPositionAwaits.setText(data.getUserNicename());
vacantPosition.setText(giftWallModel.getGiftname()); vacantPosition.setText(giftWallModel.getGiftname());
} }
if (csb) {
if (TextUtils.isEmpty(data.getNamingCoin()) || TextUtils.equals(data.getNamingCoin(), "0")) { if (TextUtils.isEmpty(data.getNamingCoin()) || TextUtils.equals(data.getNamingCoin(), "0")) {
distanceNaming.setVisibility(GONE); distanceNaming.setVisibility(GONE);
} else { } else {
distanceNaming.setVisibility(VISIBLE); distanceNaming.setVisibility(VISIBLE);
if ( !csb){
distanceNaming.setText(String.format(getContext().getString(R.string.distance_naming), String.valueOf(data.getDefault_naming_coin())));
}else {
distanceNaming.setText(String.format(getContext().getString(R.string.distance_naming), String.valueOf(data.getNamingCoin()))); distanceNaming.setText(String.format(getContext().getString(R.string.distance_naming), String.valueOf(data.getNamingCoin())));
}
} }
} else {
if (TextUtils.isEmpty(data.getDefault_naming_coin()) || TextUtils.equals(data.getDefault_naming_coin(), "0")) {
distanceNaming.setVisibility(GONE);
} else {
distanceNaming.setVisibility(VISIBLE);
distanceNaming.setText(String.format(getContext().getString(R.string.distance_naming), String.valueOf(data.getDefault_naming_coin())));
}
}
} }
@Override @Override