We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8abe7f1 commit 8507ab3Copy full SHA for 8507ab3
1 file changed
TestingCodelab/app/src/main/java/com/example/compose/rally/ui/components/RallyTopAppBar.kt
@@ -47,6 +47,7 @@ import androidx.compose.ui.unit.Dp
47
import androidx.compose.ui.unit.dp
48
import com.example.compose.rally.RallyScreen
49
import java.util.Locale
50
+import androidx.compose.ui.platform.LocalLocale
51
52
@Composable
53
fun RallyTopAppBar(
@@ -113,7 +114,7 @@ private fun RallyTab(
113
114
Icon(imageVector = icon, contentDescription = null, tint = tabTintColor)
115
if (selected) {
116
Spacer(Modifier.width(12.dp))
- Text(text.uppercase(Locale.getDefault()), color = tabTintColor)
117
+ Text(text.uppercase(LocalLocale.current.platformLocale), color = tabTintColor)
118
}
119
120
0 commit comments