Skip to content

Commit

Permalink
1、release1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
dongjunkun committed Mar 2, 2017
1 parent e3ddec5 commit 197eeb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/src/main/java/com/yyydjk/library/BannerLayout.java
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,9 @@ protected void onWindowVisibilityChanged(int visibility) {
private void stopAutoPlay() {
if (isAutoPlay) {
handler.removeMessages(WHAT_AUTO_PLAY);
pager.setCurrentItem(pager.getCurrentItem(), false);
if (pager != null) {
pager.setCurrentItem(pager.getCurrentItem(), false);
}
}
}

Expand Down

0 comments on commit 197eeb1

Please sign in to comment.