From a9078972399bddab791d905b0e231e5b9ebd184b Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 6 Jul 2023 17:45:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D#217=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/main/activity/RedPacketInfoActivity.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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()); } }