small fix
This commit is contained in:
parent
cf9133fe4b
commit
5f8b7e066a
1 changed files with 5 additions and 1 deletions
|
@ -799,7 +799,11 @@ public class VoiceRouter {
|
||||||
CommandBuilder play = getNewCommandPlayerToPlay();
|
CommandBuilder play = getNewCommandPlayerToPlay();
|
||||||
if (play != null) {
|
if (play != null) {
|
||||||
notifyOnVoiceMessage();
|
notifyOnVoiceMessage();
|
||||||
|
if (!newRoute) {
|
||||||
play.routeRecalculated(router.getLeftDistance(), router.getLeftTime()).play();
|
play.routeRecalculated(router.getLeftDistance(), router.getLeftTime()).play();
|
||||||
|
} else {
|
||||||
|
play.newRouteCalculated(router.getLeftDistance(), router.getLeftTime()).play();
|
||||||
|
}
|
||||||
} else if (player == null) {
|
} else if (player == null) {
|
||||||
pendingCommand = new VoiceCommandPending(!newRoute ? VoiceCommandPending.ROUTE_RECALCULATED : VoiceCommandPending.ROUTE_CALCULATED, this);
|
pendingCommand = new VoiceCommandPending(!newRoute ? VoiceCommandPending.ROUTE_RECALCULATED : VoiceCommandPending.ROUTE_CALCULATED, this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue