[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request #681 from BoldFruit/master
Browse files Browse the repository at this point in the history
修复一个小bug
  • Loading branch information
youth5201314 committed Mar 20, 2020
2 parents 12e2afb + 1e55626 commit ad73222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion banner/src/main/java/com/youth/banner/Banner.java
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public void run() {
int count = banner.getItemCount();
if (count <= 1) return;
int next = banner.getCurrentItem() % (count - 1) + 1;
if (next == 1) {
if (banner.getCurrentItem() == count - 1) {
banner.setCurrentItem(next, false);
banner.post(banner.mLoopTask);
} else {
Expand Down

0 comments on commit ad73222

Please sign in to comment.