diff --git a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java
index d06188889..f1baed586 100644
--- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java
+++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java
@@ -1540,9 +1540,14 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
pkRankVf.addView(titleIcon);
pkRankVf.addView(hourView);
pkRankVf.startFlipping();
-
- mRedVal.setText(bean.getRedVal()+"連勝");
- mBlueVal.setText(bean.getBlueVal()+"連勝");
+ if(Integer.parseInt(bean.getRedVal())>2) {
+ mRedVal.setVisibility(View.VISIBLE);
+ mRedVal.setText(bean.getRedVal() + "連勝");
+ }
+ if(Integer.parseInt(bean.getBlueVal())>2) {
+ mBlueVal.setVisibility(View.VISIBLE);
+ mBlueVal.setText(bean.getBlueVal() + "連勝");
+ }
//ImgLoader.display(mContext,bean.getPkTopImgUrl(),mPkRankTopIcon);
}
}, Throwable::printStackTrace)
diff --git a/live/src/main/res/layout/view_live_room.xml b/live/src/main/res/layout/view_live_room.xml
index 49a08a858..a00d8eec5 100644
--- a/live/src/main/res/layout/view_live_room.xml
+++ b/live/src/main/res/layout/view_live_room.xml
@@ -1273,7 +1273,8 @@
android:paddingBottom="8dp"
android:textColor="#FFFFFF"
android:textSize="15sp"
- android:textStyle="bold" />
+ android:textStyle="bold"
+ android:visibility="gone" />
+ android:textStyle="bold"
+ android:visibility="gone" />