Browse Source

Suppress magic number, spread operator

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 1 year ago
parent
commit
f08b9f67b8

+ 2 - 0
app/src/main/java/com/nextcloud/client/onboarding/FirstRunActivity.kt

@@ -185,6 +185,7 @@ class FirstRunActivity : BaseActivity(), ViewPager.OnPageChangeListener, Injecta
         }
         }
     }
     }
 
 
+    @Suppress("SpreadOperator")
     private fun setupFeaturesViewAdapter() {
     private fun setupFeaturesViewAdapter() {
         val featuresViewAdapter = FeaturesViewAdapter(supportFragmentManager, *firstRun)
         val featuresViewAdapter = FeaturesViewAdapter(supportFragmentManager, *firstRun)
         binding.progressIndicator.setNumberOfSteps(featuresViewAdapter.count)
         binding.progressIndicator.setNumberOfSteps(featuresViewAdapter.count)
@@ -223,6 +224,7 @@ class FirstRunActivity : BaseActivity(), ViewPager.OnPageChangeListener, Injecta
                 ViewGroup.LayoutParams.WRAP_CONTENT
                 ViewGroup.LayoutParams.WRAP_CONTENT
             )
             )
         } else {
         } else {
+            @Suppress("MagicNumber")
             LinearLayout.LayoutParams(
             LinearLayout.LayoutParams(
                 ViewGroup.LayoutParams.MATCH_PARENT,
                 ViewGroup.LayoutParams.MATCH_PARENT,
                 DisplayUtils.convertDpToPixel(if (isLandscape) 100f else 150f, this)
                 DisplayUtils.convertDpToPixel(if (isLandscape) 100f else 150f, this)