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

Destroy Loader after finish to avoid clearing selections #137

Merged
merged 1 commit into from
Apr 7, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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