From 5b9b4f9b6cd2379d7e15e8de4775f815b41bc6cd Mon Sep 17 00:00:00 2001 From: alperozturk Date: Wed, 1 Nov 2023 11:27:44 +0100 Subject: [PATCH] Fix detekt Signed-off-by: alperozturk --- .../com/nextcloud/client/onboarding/WhatsNewActivity.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/nextcloud/client/onboarding/WhatsNewActivity.kt b/app/src/main/java/com/nextcloud/client/onboarding/WhatsNewActivity.kt index edc584a9f61c..9a25653147dd 100644 --- a/app/src/main/java/com/nextcloud/client/onboarding/WhatsNewActivity.kt +++ b/app/src/main/java/com/nextcloud/client/onboarding/WhatsNewActivity.kt @@ -86,6 +86,7 @@ class WhatsNewActivity : FragmentActivity(), ViewPager.OnPageChangeListener, Inj handleOnBackPressed() } + @Suppress("SpreadOperator") private fun setupFeatureViewAdapter(showWebView: Boolean, urls: Array) { val adapter = if (showWebView) { FeaturesWebViewAdapter(supportFragmentManager, *urls) @@ -155,12 +156,14 @@ class WhatsNewActivity : FragmentActivity(), ViewPager.OnPageChangeListener, Inj preferences?.lastSeenVersionCode = BuildConfig.VERSION_CODE } - override fun onPageScrolled(position: Int, positionOffset: Float, positionOffsetPixels: Int) {} - override fun onPageSelected(position: Int) { binding.progressIndicator.animateToStep(position + 1) updateNextButtonIfNeeded() } + @Suppress("EmptyFunctionBlock") + override fun onPageScrolled(position: Int, positionOffset: Float, positionOffsetPixels: Int) {} + + @Suppress("EmptyFunctionBlock") override fun onPageScrollStateChanged(state: Int) {} }