Skip to content

Commit 8507ab3

Browse files
committed
Update RallyTopAppBar.kt
1 parent 8abe7f1 commit 8507ab3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • TestingCodelab/app/src/main/java/com/example/compose/rally/ui/components

TestingCodelab/app/src/main/java/com/example/compose/rally/ui/components/RallyTopAppBar.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ import androidx.compose.ui.unit.Dp
4747
import androidx.compose.ui.unit.dp
4848
import com.example.compose.rally.RallyScreen
4949
import java.util.Locale
50+
import androidx.compose.ui.platform.LocalLocale
5051

5152
@Composable
5253
fun RallyTopAppBar(
@@ -113,7 +114,7 @@ private fun RallyTab(
113114
Icon(imageVector = icon, contentDescription = null, tint = tabTintColor)
114115
if (selected) {
115116
Spacer(Modifier.width(12.dp))
116-
Text(text.uppercase(Locale.getDefault()), color = tabTintColor)
117+
Text(text.uppercase(LocalLocale.current.platformLocale), color = tabTintColor)
117118
}
118119
}
119120
}

0 commit comments

Comments
 (0)