Example #1
0
 private void initNotificationCreator() {
   notificationCreator = new MapzenNotificationCreator(act);
   if (instructions != null) {
     notificationCreator.createNewNotification(
         SimpleFeatureHelper.getMarker(simpleFeature).title,
         instructions.get(0).getFullInstruction(getActivity()));
   }
 }
Example #2
0
 @Override
 public void onPageSelected(int i) {
   if (!isPaging) {
     mapController.setMapPerspectiveForInstruction(instructions.get(i));
   } else {
     setCurrentPagerItemStyling(i);
   }
   notificationCreator.createNewNotification(
       SimpleFeatureHelper.getMarker(simpleFeature).title,
       instructions.get(i).getFullInstruction(getActivity()));
 }