Skip to content

Releases: uncn/Banner_disuse

Banner V1.0.4

14 Jul 09:48
Compare
Choose a tag to compare

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

25 May 03:00
Compare
Choose a tag to compare

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

01 Apr 05:07
Compare
Choose a tag to compare

Fix banner indicator icon bug

Banner V1.0.1

01 Apr 04:41
Compare
Choose a tag to compare

Banner interface add parameter

Banner V1.0.0

01 Apr 02:45
Compare
Choose a tag to compare

First Commit