Skip to content

Commit

Permalink
removeLifecycleRegistry supported for #288
Browse files Browse the repository at this point in the history
  • Loading branch information
zhpanvip committed Nov 23, 2022
1 parent 1f3fbf0 commit d99f59c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1067,6 +1067,11 @@ public BannerViewPager<T> setLifecycleRegistry(Lifecycle lifecycleRegistry) {
return this;
}

public BannerViewPager<T> removeLifecycleRegistry(Lifecycle lifecycleRegistry) {
lifecycleRegistry.removeObserver(this);
return this;
}

@OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)
public void onPause() {
stopLoop();
Expand Down

0 comments on commit d99f59c

Please sign in to comment.