Merge remote-tracking branch 'origin/master'

This commit is contained in:
zlzw 2022-11-16 18:26:50 +08:00
commit fe3c9c1563
3 changed files with 8 additions and 2 deletions

View File

@ -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() {

View File

@ -55,6 +55,11 @@ public class RecommendViewHolder extends RecyclerView.ViewHolder {
}
public void updateData(List<AnchorRecommendItemModel> list) {
if (list.size() == 0) {
itemView.setVisibility(View.GONE);
} else {
itemView.setVisibility(View.VISIBLE);
}
recommendAdapter.updateData(list);
}

View File

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