Example #1
0
 @Override
 public void onRouteComplete() {
   pager.setCurrentItem(instructions.size() - 1);
   voiceNavigationController.playInstruction(instructions.get(instructions.size() - 1));
   distanceToDestination.setDistance(0);
   footerWrapper.setVisibility(View.GONE);
 }
Example #2
0
 @Override
 public void onApproachInstruction(int index) {
   if (index < instructions.size() - 1) {
     voiceNavigationController.playInstruction(instructions.get(index));
   }
 }