From 0a3d0023fc8c03d3edad26652735b023427bf4ee Mon Sep 17 00:00:00 2001 From: amirmohammad Date: Thu, 8 Jan 2026 00:20:23 +0330 Subject: [PATCH] Remove outdated ComposableModifierFactory lint suppression The lint was removed in Compose 1.6 and the project now uses 1.8.0. Remove the @SuppressLint annotation, TODO comment, and unused import. --- .../core/designsystem/component/scrollbar/AppScrollbars.kt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/designsystem/src/main/kotlin/com/google/samples/apps/nowinandroid/core/designsystem/component/scrollbar/AppScrollbars.kt b/core/designsystem/src/main/kotlin/com/google/samples/apps/nowinandroid/core/designsystem/component/scrollbar/AppScrollbars.kt index 1086e280b..9ce7b3a60 100644 --- a/core/designsystem/src/main/kotlin/com/google/samples/apps/nowinandroid/core/designsystem/component/scrollbar/AppScrollbars.kt +++ b/core/designsystem/src/main/kotlin/com/google/samples/apps/nowinandroid/core/designsystem/component/scrollbar/AppScrollbars.kt @@ -16,7 +16,6 @@ package com.google.samples.apps.nowinandroid.core.designsystem.component.scrollbar -import android.annotation.SuppressLint import androidx.compose.animation.animateColorAsState import androidx.compose.animation.core.Spring import androidx.compose.animation.core.SpringSpec @@ -164,9 +163,6 @@ private fun ScrollableState.DecorativeScrollbarThumb( ) } -// TODO: This lint is removed in 1.6 as the recommendation has changed -// remove when project is upgraded -@SuppressLint("ComposableModifierFactory") @Composable private fun Modifier.scrollThumb( scrollableState: ScrollableState,