コード例 #1
0
ファイル: RoutingController.java プロジェクト: syershov/omim
  void checkAndBuildRoute() {
    if (mContainer != null) {
      if (isWaitingPoiPick()) showRoutePlan();

      mContainer.updatePoints();
    }

    if (mStartPoint != null && mEndPoint != null) build();
  }
コード例 #2
0
ファイル: RoutingController.java プロジェクト: syershov/omim
  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();
  }
コード例 #3
0
ファイル: RoutingController.java プロジェクト: syershov/omim
  @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();
  }