From 9d57c48aca76ef4c34e4a0e50dd46a5cf6158cfd Mon Sep 17 00:00:00 2001 From: zhpanvip Date: Wed, 23 Nov 2022 18:08:16 +0800 Subject: [PATCH] Rename removeLifecycleRegistry to removeLifecycleObserver #288 --- .../src/main/java/com/zhpan/bannerview/BannerViewPager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bannerview/src/main/java/com/zhpan/bannerview/BannerViewPager.java b/bannerview/src/main/java/com/zhpan/bannerview/BannerViewPager.java index 8315bbb..2e7c732 100644 --- a/bannerview/src/main/java/com/zhpan/bannerview/BannerViewPager.java +++ b/bannerview/src/main/java/com/zhpan/bannerview/BannerViewPager.java @@ -1076,7 +1076,7 @@ public BannerViewPager registerLifecycleObserver(Lifecycle lifecycleRegistry) return this; } - public BannerViewPager removeLifecycleRegistry(Lifecycle lifecycleRegistry) { + public BannerViewPager removeLifecycleObserver(Lifecycle lifecycleRegistry) { lifecycleRegistry.removeObserver(this); return this; }