refactor: replace save with send string

master
andrekir 2023-02-01 12:51:42 -03:00
rodzic 62420132f1
commit 640cd0a269
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -578,7 +578,7 @@ class MapFragment : ScreenFragment("Map Fragment"), Logging, View.OnClickListene
.setNeutralButton(R.string.cancel) { _, _ -> .setNeutralButton(R.string.cancel) { _, _ ->
debug("User canceled marker create dialog") debug("User canceled marker create dialog")
} }
.setPositiveButton(getString(R.string.save)) { _, _ -> .setPositiveButton(getString(R.string.send)) { _, _ ->
debug("User created waypoint") debug("User created waypoint")
model.sendWaypoint(waypoint { model.sendWaypoint(waypoint {
name = nameInput.text.toString().ifEmpty { return@setPositiveButton } name = nameInput.text.toString().ifEmpty { return@setPositiveButton }

Wyświetl plik

@ -48,7 +48,7 @@ fun PreferenceFooter(
colors = ButtonDefaults.buttonColors(backgroundColor = Color.Green) colors = ButtonDefaults.buttonColors(backgroundColor = Color.Green)
) { ) {
Text( Text(
text = stringResource(id = R.string.save), text = stringResource(id = R.string.send),
style = MaterialTheme.typography.body1, style = MaterialTheme.typography.body1,
color = if (!enabled) MaterialTheme.colors.onSurface.copy(alpha = ContentAlpha.disabled) else Color.DarkGray, color = if (!enabled) MaterialTheme.colors.onSurface.copy(alpha = ContentAlpha.disabled) else Color.DarkGray,
) )