Use primitive state holders

(cherry picked from commit dfd38db7e33bd708ccb688f3fe02d4e0105083f2)
This commit is contained in:
arkon
2023-05-27 09:22:31 -04:00
committed by Jobobby04
parent 2a921d008e
commit 491cfafddb
12 changed files with 29 additions and 22 deletions
@@ -22,7 +22,7 @@ import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.mutableIntStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
@@ -201,7 +201,7 @@ private fun UpdatesUiItem(
)
Row(verticalAlignment = Alignment.CenterVertically) {
var textHeight by remember { mutableStateOf(0) }
var textHeight by remember { mutableIntStateOf(0) }
if (!update.read) {
Icon(
imageVector = Icons.Filled.Circle,