From 8c11818b4908539e62c7dc5857cccfda10bf990f Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Wed, 16 Nov 2022 18:16:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=A7=E8=BE=B9=E6=A0=8F=E4=BF=AE=E6=94=B9,?= =?UTF-8?q?=E7=9B=B4=E6=92=AD=E5=85=B3=E6=92=AD=E9=A1=B5=E9=9D=A2BUg?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/common/adapter/CustomDrawerPopupAdapter.java | 1 + .../java/com/yunbao/common/views/RecommendViewHolder.java | 5 +++++ config.gradle | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/adapter/CustomDrawerPopupAdapter.java b/common/src/main/java/com/yunbao/common/adapter/CustomDrawerPopupAdapter.java index b36bd2544..84c2c450d 100644 --- a/common/src/main/java/com/yunbao/common/adapter/CustomDrawerPopupAdapter.java +++ b/common/src/main/java/com/yunbao/common/adapter/CustomDrawerPopupAdapter.java @@ -96,6 +96,7 @@ public class CustomDrawerPopupAdapter extends RecyclerView.Adapter { RecommendViewHolder recommendViewHolder = (RecommendViewHolder) holder; recommendViewHolder.setData(infoModels.get(position)); recommendViewHolder.updateData(list); + recommendViewHolder.setListener(new RecommendViewHolder.RecommendViewListener() { @Override public void changeOneBatch() { diff --git a/common/src/main/java/com/yunbao/common/views/RecommendViewHolder.java b/common/src/main/java/com/yunbao/common/views/RecommendViewHolder.java index 0f4b6f555..3dc26cfe2 100644 --- a/common/src/main/java/com/yunbao/common/views/RecommendViewHolder.java +++ b/common/src/main/java/com/yunbao/common/views/RecommendViewHolder.java @@ -55,6 +55,11 @@ public class RecommendViewHolder extends RecyclerView.ViewHolder { } public void updateData(List list) { + if (list.size() == 0) { + itemView.setVisibility(View.GONE); + } else { + itemView.setVisibility(View.VISIBLE); + } recommendAdapter.updateData(list); } diff --git a/config.gradle b/config.gradle index 8affa5db3..74c89ff01 100644 --- a/config.gradle +++ b/config.gradle @@ -10,9 +10,9 @@ ext { manifestPlaceholders = [ //正式 - serverHost : "https://napi.yaoulive.com", +// serverHost : "https://napi.yaoulive.com", //測試 -// serverHost : "https://ceshi.yaoulive.com", + serverHost : "https://ceshi.yaoulive.com", //腾讯地图 txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",