diff --git a/main/src/main/java/com/yunbao/main/activity/RedPacketInfoActivity.java b/main/src/main/java/com/yunbao/main/activity/RedPacketInfoActivity.java index 7bc0bb365..3f73951ae 100644 --- a/main/src/main/java/com/yunbao/main/activity/RedPacketInfoActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/RedPacketInfoActivity.java @@ -66,10 +66,12 @@ public class RedPacketInfoActivity extends AbsActivity implements View.OnClickLi backAccountText.setText(R.string.red_packet_info_residue_none); } else{ gold.setVisibility(View.VISIBLE); - backAccountText.setText(mContext.getString(R.string.red_packet_info_residue_back) + " +" + bean.getAmountDiamond()); } if (bean.getRedPacketStatus() == 2 && bean.getAmountRefund() == 0) { - icon.setImageResource(R.mipmap.gold_coin); + gold.setImageResource(R.mipmap.diamond); + backAccountText.setText(mContext.getString(R.string.red_packet_info_residue_back) + " +" + bean.getAmountDiamond()); + }else if(bean.getRedPacketStatus()==2 && bean.getAmountRefund()>0){ + gold.setImageResource(R.mipmap.gold_coin); backAccountText.setText(mContext.getString(R.string.red_packet_info_residue_back) + " +" + bean.getAmountRefund()); } }