private void reloadGui() {
    if (mGalleryGui != null) {
      QueryParameterParcelable query =
          this.mGalleryQueryParameter.calculateEffectiveGalleryContentQuery();
      if (query != null) {
        this.mGalleryGui.requery(this, query);
      }
    }

    if (mDirGui != null) {
      String currentPath = this.mGalleryQueryParameter.mCurrentPath;
      if (currentPath != null) {
        mDirGui.navigateTo(currentPath);
      }
    }
  }
  private void onDirectoryDataLoadComplete(IDirectory directoryRoot) {
    if (directoryRoot == null) {
      final String message =
          getString(
              R.string.err_load_folder_failed,
              FotoSql.getName(this, this.mGalleryQueryParameter.getDirQueryID()));
      Toast.makeText(this, message, Toast.LENGTH_LONG).show();
    } else {
      mDirectoryRoot = directoryRoot;
      if ((mDirGui != null) && (this.mGalleryQueryParameter.mCurrentPath != null)) {
        mDirGui.defineDirectoryNavigation(
            directoryRoot,
            this.mGalleryQueryParameter.getDirQueryID(),
            this.mGalleryQueryParameter.mCurrentPath);
      }
      Global.debugMemory(debugPrefix, "onDirectoryDataLoadComplete");

      if ((mDirectoryRoot != null) && (this.mMustShowNavigator)) {
        openFolderPicker();
      }
    }
  }