Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
fe3c9c1563
@ -96,6 +96,7 @@ public class CustomDrawerPopupAdapter extends RecyclerView.Adapter {
|
|||||||
RecommendViewHolder recommendViewHolder = (RecommendViewHolder) holder;
|
RecommendViewHolder recommendViewHolder = (RecommendViewHolder) holder;
|
||||||
recommendViewHolder.setData(infoModels.get(position));
|
recommendViewHolder.setData(infoModels.get(position));
|
||||||
recommendViewHolder.updateData(list);
|
recommendViewHolder.updateData(list);
|
||||||
|
|
||||||
recommendViewHolder.setListener(new RecommendViewHolder.RecommendViewListener() {
|
recommendViewHolder.setListener(new RecommendViewHolder.RecommendViewListener() {
|
||||||
@Override
|
@Override
|
||||||
public void changeOneBatch() {
|
public void changeOneBatch() {
|
||||||
|
@ -55,6 +55,11 @@ public class RecommendViewHolder extends RecyclerView.ViewHolder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void updateData(List<AnchorRecommendItemModel> list) {
|
public void updateData(List<AnchorRecommendItemModel> list) {
|
||||||
|
if (list.size() == 0) {
|
||||||
|
itemView.setVisibility(View.GONE);
|
||||||
|
} else {
|
||||||
|
itemView.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
recommendAdapter.updateData(list);
|
recommendAdapter.updateData(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,9 +10,9 @@ ext {
|
|||||||
manifestPlaceholders = [
|
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",
|
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",
|
||||||
|
Loading…
Reference in New Issue
Block a user