added saving route duration

This commit is contained in:
Sem van der Hoeven
2021-01-12 13:51:50 +01:00
parent 5544da5d2e
commit 39ff2684cb
3 changed files with 14 additions and 0 deletions

View File

@@ -139,6 +139,7 @@ public class HomeFragment extends Fragment implements LocationListener {
roadOverlay.setColor(color);
// pass the line to the route handler
RouteHandler.INSTANCE.setCurrentRouteDuration(directionsResult.getDuration());
RouteHandler.INSTANCE.setCurrentRouteLine(roadOverlay);
Log.d(TAG, "onDirectionsAvailable: successfully added road!");