Move "SOS" to strings

This commit is contained in:
Ensar Sarajčić 2023-10-02 17:00:17 +02:00
parent 50f0be9e20
commit 0767d76345
2 changed files with 3 additions and 1 deletions

View File

@ -138,7 +138,7 @@ internal fun MainScreen(
interactionSource = rememberMutableInteractionSource(),
onClick = onSosButtonPress
),
text = "SOS",
text = stringResource(id = R.string.sos),
fontSize = TextUnit(dimensionResource(id = R.dimen.sos_text_size).value, TextUnitType.Sp),
fontWeight = FontWeight.Bold,
color = if (sosActive) MaterialTheme.colorScheme.primary else MaterialTheme.colorScheme.onSurface

View File

@ -2,4 +2,6 @@
<resources>
<string name="package_name">com.simplemobiletools.flashlight</string>
<string name="sos">SOS</string>
</resources>