diff --git a/live/src/main/java/com/yunbao/live/dialog/GiftWallItemPopup.java b/live/src/main/java/com/yunbao/live/dialog/GiftWallItemPopup.java index b9c8bf00e..d7ce29a61 100644 --- a/live/src/main/java/com/yunbao/live/dialog/GiftWallItemPopup.java +++ b/live/src/main/java/com/yunbao/live/dialog/GiftWallItemPopup.java @@ -113,17 +113,28 @@ public class GiftWallItemPopup extends CenterPopupView { vacantPositionAwaits.setText(data.getUserNicename()); vacantPosition.setText(giftWallModel.getGiftname()); } - if (TextUtils.isEmpty(data.getNamingCoin()) || TextUtils.equals(data.getNamingCoin(), "0")) { - distanceNaming.setVisibility(GONE); - } else { - 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()))); - } + if (csb) { + if (TextUtils.isEmpty(data.getNamingCoin()) || TextUtils.equals(data.getNamingCoin(), "0")) { + distanceNaming.setVisibility(GONE); + } else { + distanceNaming.setVisibility(VISIBLE); + 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