diff --git a/main/src/main/java/com/yunbao/main/views/MainMeViewHolder.java b/main/src/main/java/com/yunbao/main/views/MainMeViewHolder.java index 6ff717a41..760c3151a 100644 --- a/main/src/main/java/com/yunbao/main/views/MainMeViewHolder.java +++ b/main/src/main/java/com/yunbao/main/views/MainMeViewHolder.java @@ -253,12 +253,10 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi } else { coin.setText(coins); } - BigDecimal yuanbao = new BigDecimal(yuanbaos); - String yuanbaoStr = String.valueOf(yuanbao.intValue()); - if (yuanbaoStr.length() > 9) { - star_coin.setText(yuanbaoStr.substring(0, yuanbaoStr.length() - 6) + "M"); - } else if (yuanbaoStr.length() > 7) { - star_coin.setText(yuanbaoStr.substring(0, yuanbaoStr.length() - 3) + "K"); + if (yuanbaos.length() > 9) { + star_coin.setText(yuanbaos.substring(0, yuanbaos.length() - 6) + "M"); + } else if (yuanbaos.length() > 7) { + star_coin.setText(yuanbaos.substring(0, yuanbaos.length() - 3) + "K"); } else { star_coin.setText(yuanbaos); }