Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #137 from spacecowboy/fix-refresh-selections
Browse files Browse the repository at this point in the history
Destroy Loader after finish to avoid clearing selections
  • Loading branch information
spacecowboy authored Apr 7, 2017
2 parents 80d2358 + 8a3f6a2 commit d107ecc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,8 @@ public void onLoadFinished(final Loader<SortedList<T>> loader,
if (mCurrentDirView != null) {
mCurrentDirView.setText(getFullPath(mCurrentPath));
}
// Stop loading now to avoid a refresh clearing the user's selections
getLoaderManager().destroyLoader( 0 );
}

/**
Expand All @@ -595,8 +597,6 @@ public void onLoadFinished(final Loader<SortedList<T>> loader,
@Override
public void onLoaderReset(final Loader<SortedList<T>> loader) {
isLoading = false;
mAdapter.setList(null);
mFiles = null;
}

/**
Expand Down

0 comments on commit d107ecc

Please sign in to comment.