Beispiel #1
0
 private void announceGpxWaypoints(Location currentLocation) {
   if (currentLocation != null) {
     List<WptPt> wpt = route.getWaypointsToAnnounce(currentLocation);
     if (wpt.size() > 0) {
       String s = "";
       for (WptPt w : wpt) {
         if (!Algorithms.isEmpty(w.name)) {
           s = w.name + ",";
         }
       }
       if (!Algorithms.isEmpty(s)) {
         voiceRouter.announceWaypoint(s);
       }
     }
   }
 }