Skip to content

Commit

Permalink
Use Immutable instead of Stable
Browse files Browse the repository at this point in the history
  • Loading branch information
SanmerDev committed Jan 23, 2024
1 parent 25a9887 commit 723d50d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/src/main/kotlin/dev/sanmer/pi/model/IPackageInfo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package dev.sanmer.pi.model

import android.content.pm.PackageInfo
import android.content.pm.PackageManager
import androidx.compose.runtime.Stable
import androidx.compose.runtime.Immutable

@Stable
@Immutable
data class IPackageInfo(
val inner: PackageInfo,
val packageName: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.surfaceColorAtElevation
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.Stable
import androidx.compose.runtime.derivedStateOf
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
Expand Down Expand Up @@ -117,7 +117,7 @@ private fun ScrollableState.FastScrollbar(
reverseLayout = reverseLayout
)

@Stable
@Immutable
class ScrollbarColors internal constructor(
private val contentColor: Color,
private val activeContentColor: Color,
Expand Down

0 comments on commit 723d50d

Please sign in to comment.