billyyoyo 6 年 前
コミット
05fc13b39a
共有1 個のファイルを変更した3 個の追加1 個の削除を含む
  1. 3 1
      app/src/main/java/com/sheep/gamegroup/view/fragment/FgtSmallSheep.java

+ 3 - 1
app/src/main/java/com/sheep/gamegroup/view/fragment/FgtSmallSheep.java

@@ -864,7 +864,9 @@ public class FgtSmallSheep extends BaseFragment implements SmallSheepContract.Vi
             CommonUtil.getInstance().refreshAds(SheepAd.FORM_HOME_BAR, (ret, list) -> {
                 if (ret) {
                     barListList.clear();
-                    barListList.addAll(list);
+                    if (list.size() > 0) {
+                        barListList.add(list.get(0));
+                    }
                     ViewUtil.notifyDataSetChanged(bar_list_rv);
                 }
             });