From e09118f3897485e1c09140308940828b56fb4977 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Tue, 30 Jul 2013 01:01:14 +0200 Subject: [PATCH] Fix attention notice --- OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java b/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java index 08ae6abccd..8a27303fa8 100644 --- a/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java +++ b/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java @@ -236,12 +236,12 @@ public class VoiceRouter { } - } else if (alarm.getTime() == AlarmInfo.SPEED_CAMERA) { + } else if (alarm.getType() == AlarmInfo.SPEED_CAMERA) { if (router.getSettings().SPEAK_SPEED_CAMERA.get() && ms - lastAnnouncedSpeedCamera > 100 * 1000) { CommandBuilder p = getNewCommandPlayerToPlay(); if (p != null) { lastAnnouncedSpeedCamera = ms; - p.speedAlarm().play(); + p.attention(alarm.getType()+"").play(); } } } else { @@ -249,7 +249,7 @@ public class VoiceRouter { CommandBuilder p = getNewCommandPlayerToPlay(); if (p != null) { lastAnnouncedWarning = ms; - p.speedAlarm().play(); + p.attention(alarm.getType()+"").play(); } } }