From f2849e523bacf48305cbc4b6a93c3e5dc68e8495 Mon Sep 17 00:00:00 2001 From: ne0fhyk Date: Tue, 26 May 2015 04:38:54 -0700 Subject: [PATCH] fix `going for waypoint zero` bug. --- .../android/notifications/TTSNotificationProvider.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Android/src/org/droidplanner/android/notifications/TTSNotificationProvider.java b/Android/src/org/droidplanner/android/notifications/TTSNotificationProvider.java index 18a4af1d95..87f1436749 100644 --- a/Android/src/org/droidplanner/android/notifications/TTSNotificationProvider.java +++ b/Android/src/org/droidplanner/android/notifications/TTSNotificationProvider.java @@ -142,7 +142,10 @@ public void onReceive(Context context, Intent intent) { break; case AttributeEvent.MISSION_ITEM_UPDATED: int currentWaypoint = intent.getIntExtra(AttributeEventExtra.EXTRA_MISSION_CURRENT_WAYPOINT, 0); - speak("Going for waypoint " + currentWaypoint); + if(currentWaypoint != 0) { + //Zeroth waypoint is the home location. + speak("Going for waypoint " + currentWaypoint); + } break; case AttributeEvent.FOLLOW_START: speak("Following");