コード例 #1
0
ファイル: RoutingController.java プロジェクト: syershov/omim
 @Override
 public void onRouteBuildingProgress(final float progress) {
   UiThread.run(
       new Runnable() {
         @Override
         public void run() {
           mLastBuildProgress = (int) progress;
           updateProgress();
         }
       });
 }
コード例 #2
0
ファイル: RoutingController.java プロジェクト: syershov/omim
        @Override
        public void onRoutingEvent(final int resultCode, @Nullable final String[] missingMaps) {
          mLogger.d("onRoutingEvent(resultCode: " + resultCode + ")");

          UiThread.run(
              new Runnable() {
                @Override
                public void run() {
                  mLastResultCode = resultCode;
                  mLastMissingMaps = missingMaps;
                  mContainsCachedResult = true;

                  if (mLastResultCode == ResultCodesHelper.NO_ERROR) {
                    mCachedRoutingInfo = Framework.nativeGetRouteFollowingInfo();
                    setBuildState(BuildState.BUILT);
                    mLastBuildProgress = 100;
                  }

                  processRoutingEvent();
                }
              });
        }