Releases: uncn/Banner_disuse
Releases · uncn/Banner_disuse
Banner V1.0.4
Fix the dead loop BUG in the BannerTask,add an isPlaying tag in run() method to abandon the invalid post.
private Runnable mBannerTask = new Runnable() {
@Override
public void run() {
if (isPlaying) {
mRecyclerView.smoothScrollToPosition(++mCurrentIndex);
switchIndicator();
mHandler.postDelayed(this, mInterval);
}
}
};
Banner V1.0.3
Fix the dead loop BUG in the playBanner()
method,before post delayed Runnable,the handler should remove callbacks and messages.
public void playBanner() {
if (mHandler != null && !isPlaying && mBannerAdapter.getItemCount() > 1) {
mHandler.removeCallbacksAndMessages(null);
mHandler.postDelayed(mBannerTask, mInterval);
isPlaying = true;
}
}
Banner V1.0.2
Fix banner indicator icon bug
Banner V1.0.1
Banner interface add parameter
Banner V1.0.0
First Commit