sforkowany z mirror/meshtastic-android
refactor: replace save with send string
rodzic
62420132f1
commit
640cd0a269
|
@ -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 }
|
||||||
|
|
|
@ -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,
|
||||||
)
|
)
|
||||||
|
|
Ładowanie…
Reference in New Issue