void checkAndBuildRoute() { if (mContainer != null) { if (isWaitingPoiPick()) showRoutePlan(); mContainer.updatePoints(); } if (mStartPoint != null && mEndPoint != null) build(); }
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(); }
@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(); }