private void initNotificationCreator() { notificationCreator = new MapzenNotificationCreator(act); if (instructions != null) { notificationCreator.createNewNotification( SimpleFeatureHelper.getMarker(simpleFeature).title, instructions.get(0).getFullInstruction(getActivity())); } }
@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())); }