diff --git a/rollbanner/src/main/java/com/ms/banner/Banner.java b/rollbanner/src/main/java/com/ms/banner/Banner.java index 8a4b80f..8d62e42 100644 --- a/rollbanner/src/main/java/com/ms/banner/Banner.java +++ b/rollbanner/src/main/java/com/ms/banner/Banner.java @@ -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();