small fix

This commit is contained in:
sonora 2016-07-19 00:48:34 +02:00
parent cf9133fe4b
commit 5f8b7e066a

View file

@ -799,7 +799,11 @@ public class VoiceRouter {
CommandBuilder play = getNewCommandPlayerToPlay();
if (play != null) {
notifyOnVoiceMessage();
play.routeRecalculated(router.getLeftDistance(), router.getLeftTime()).play();
if (!newRoute) {
play.routeRecalculated(router.getLeftDistance(), router.getLeftTime()).play();
} else {
play.newRouteCalculated(router.getLeftDistance(), router.getLeftTime()).play();
}
} else if (player == null) {
pendingCommand = new VoiceCommandPending(!newRoute ? VoiceCommandPending.ROUTE_RECALCULATED : VoiceCommandPending.ROUTE_CALCULATED, this);
}