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",