Ejemplo n.º 1
0
  void checkAndBuildRoute() {
    if (mContainer != null) {
      if (isWaitingPoiPick()) showRoutePlan();

      mContainer.updatePoints();
    }

    if (mStartPoint != null && mEndPoint != null) build();
  }
Ejemplo n.º 2
0
  private void onPoiSelectedInternal(@Nullable MapObject point, int slot) {
    if (point != null) {
      if (slot == 1) setStartPoint(point);
      else setEndPoint(point);
    }

    if (mContainer == null) return;

    mContainer.updateMenu();
    showRoutePlan();
  }
Ejemplo n.º 3
0
  @MainThread
  public void restore() {
    mHasContainerSavedState = false;
    if (isPlanning()) showRoutePlan();

    if (mContainer != null) {
      if (isUberPlanning()) mContainer.updateBuildProgress(0, mLastRouterType);

      mContainer.showNavigation(isNavigating());
      mContainer.updateMenu();
      mContainer.updatePoints();
    }
    processRoutingEvent();
  }