Commit 71d3fef6 authored by Nicolas Lenz's avatar Nicolas Lenz
Browse files

Update location dialogue

parent 14c126bc
......@@ -152,7 +152,7 @@ public class SpeechHandler {
if(locations != null && !locations.isEmpty()) {
currentState.setLocation(Optional.of(locations.get(0)));
currentState.setOtherLocations(locations.subList(1,locations.size())); // All except the first element
engine.speakAndSleep(String.format("Container %d is stored in %s. Say \"Hey Pico, reached\" or \"full\" when arrived.", container.get(), locations.get(0)));
engine.speakAndSleep(String.format("Container %d is stored in %s. Say \"Hey Pico, location reached\" or \"location full\" when arrived.", container.get(), locations.get(0)));
} else {
engine.speakAndPrime(String.format("Container %d has no locations saved. Choose one.", container.get()));
}
......@@ -197,7 +197,7 @@ public class SpeechHandler {
// Preset location left
currentState.setLocation(Optional.of(otherLocations.get(0)));
currentState.setOtherLocations(otherLocations.subList(1, otherLocations.size())); // All except first
engine.speakAndSleep(String.format("Next location is %s. Say \"Hey Pico, reached\" or \"full\" when arrived.", otherLocations.get(0)));
engine.speakAndSleep(String.format("Next location is %s. Say \"Hey Pico, location reached\" or \"location full\" when arrived.", otherLocations.get(0)));
} else {
// No preset location left. Ask for one!
currentState.setLocation(Optional.empty());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment