Skip to content

Commit

Permalink
[feature/droidknights#222] Lint apply
Browse files Browse the repository at this point in the history
  • Loading branch information
l2hyunwoo committed Aug 19, 2023
1 parent 48873fa commit 5e49c04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ import com.droidknights.app2023.feature.contributor.navigation.contributorNavGra
import com.droidknights.app2023.feature.home.navigation.homeNavGraph
import com.droidknights.app2023.feature.session.navigation.sessionNavGraph
import com.droidknights.app2023.feature.setting.navigation.settingNavGraph
import kotlinx.collections.immutable.ImmutableList
import kotlinx.collections.immutable.PersistentList
import kotlinx.collections.immutable.toImmutableList
import kotlinx.collections.immutable.toPersistentList

@Composable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.runtime.snapshots.SnapshotStateList
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.composed
Expand Down Expand Up @@ -100,7 +101,7 @@ private fun SessionTabRow(
modifier: Modifier = Modifier,
) {
val density = LocalDensity.current
val tabWidths = remember {
val tabWidths = remember<SnapshotStateList<Dp>> {
mutableStateListOf<Dp>().apply { addAll(rooms.map { 0.dp }) }
}
val selectedTabIndex = rooms.indexOf(selectedRoom)
Expand Down

0 comments on commit 5e49c04

Please sign in to comment.