Skip to content

Commit

Permalink
解决数据为空的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomsh authored Mar 1, 2019
1 parent 5fc0491 commit d234e67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rollbanner/src/main/java/com/ms/banner/Banner.java
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,9 @@ public void update(List<?> imageUrls) {
}
if (imageUrls.size() == 0) {
bannerDefaultImage.setVisibility(VISIBLE);
this.mDatas.clear();
this.indicatorImages.clear();
adapter.notifyDataSetChanged();
} else {
this.mDatas.clear();
this.indicatorImages.clear();
Expand Down

0 comments on commit d234e67

Please sign in to comment.