소스 검색

Suppress magic number, spread operator

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 1 년 전
부모
커밋
f08b9f67b8
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      app/src/main/java/com/nextcloud/client/onboarding/FirstRunActivity.kt

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