format comments

This commit is contained in:
sonora 2016-07-17 13:08:19 +02:00
parent 8dd4d8cad6
commit 06a3451a23

View file

@ -801,15 +801,15 @@ public class VoiceRouter {
CommandBuilder play = getNewCommandPlayerToPlay();
if (play != null) {
if (!newRoute) {
// suppress "route recalculated" prompt for GPX-routing, it makes no sense
// suppress "route recalculated" prompt for 60sec (this workaround now outdated after more intelligent route recalculation and directional voice prompt suppression)
// if (router.getCurrentGPXRoute() == null && (System.currentTimeMillis() - lastTimeRouteRecalcAnnounced > 60000)) {
// Suppress "route recalculated" prompt for 60sec (this workaround now outdated after more intelligent route recalculation and directional voice prompt suppression)
//if (router.getCurrentGPXRoute() == null && (System.currentTimeMillis() - lastTimeRouteRecalcAnnounced > 60000)) {
// Suppress "route recalculated" prompt for GPX-routing, it makes no sense
if (router.getCurrentGPXRoute() == null) {
notifyOnVoiceMessage();
play.routeRecalculated(router.getLeftDistance(), router.getLeftTime()).play();
currentStatus = STATUS_UNKNOWN;
suppressDest = false;
// lastTimeRouteRecalcAnnounced = System.currentTimeMillis();
//lastTimeRouteRecalcAnnounced = System.currentTimeMillis();
}
} else {
notifyOnVoiceMessage();