From 16acd37a1773522d04748e1add55a8b24a66e7af Mon Sep 17 00:00:00 2001 From: rotieno Date: Fri, 12 Jul 2024 12:23:22 +0300 Subject: [PATCH] chore: fix lint errors --- gradle.properties | 2 +- .../behaviors/BottomNavigationBehavior.kt | 22 +++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/gradle.properties b/gradle.properties index 29fb0eb..bca887c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,7 +13,7 @@ kapt.use.worker.api=false kapt.incremental.apt=false # Always maintain in alpahabetical order # start of build tool chain versions -miniSdkVersion=23 +miniSdkVersion=26 comSdkVersion=34 tarSdkVersion=34 # end of build tool chain versions diff --git a/ui/src/main/java/com/rowland/delivery/merchant/views/behaviors/BottomNavigationBehavior.kt b/ui/src/main/java/com/rowland/delivery/merchant/views/behaviors/BottomNavigationBehavior.kt index ac06f61..0e2031d 100644 --- a/ui/src/main/java/com/rowland/delivery/merchant/views/behaviors/BottomNavigationBehavior.kt +++ b/ui/src/main/java/com/rowland/delivery/merchant/views/behaviors/BottomNavigationBehavior.kt @@ -34,14 +34,14 @@ import kotlin.math.min * Created by rowlandoti on 08/03/2021 * */ -class BottomNavigationBehavior(@NonNull context: Context?, @NonNull attrs: AttributeSet?) : +class BottomNavigationBehavior(context: Context?, attrs: AttributeSet?) : CoordinatorLayout.Behavior(context, attrs) { override fun onStartNestedScroll( - @NonNull coordinatorLayout: CoordinatorLayout, - @NonNull child: BottomNavigationView, - @NonNull directTargetChild: View, - @NonNull target: View, + coordinatorLayout: CoordinatorLayout, + child: BottomNavigationView, + directTargetChild: View, + target: View, axes: Int, type: Int ): Boolean { @@ -49,12 +49,12 @@ class BottomNavigationBehavior(@NonNull context: Context?, @NonNull attrs: Attri } override fun onNestedPreScroll( - @NonNull coordinatorLayout: CoordinatorLayout, - @NonNull child: BottomNavigationView, - @NonNull target: View, + coordinatorLayout: CoordinatorLayout, + child: BottomNavigationView, + target: View, dx: Int, dy: Int, - @NonNull consumed: IntArray, + consumed: IntArray, type: Int ) { super.onNestedPreScroll(coordinatorLayout, child, target, dx, dy, consumed, type) @@ -62,9 +62,9 @@ class BottomNavigationBehavior(@NonNull context: Context?, @NonNull attrs: Attri } override fun layoutDependsOn( - @Nullable parent: CoordinatorLayout, + parent: CoordinatorLayout, child: BottomNavigationView, - @Nullable dependency: View + dependency: View ): Boolean { if (dependency is SnackbarLayout) { this.updateSnackbar(child, dependency)