Don't sort list of RSS feeds in UI.

This commit is contained in:
akwizgran
2022-12-12 17:31:45 +00:00
parent 33d01aac8c
commit e52250f1e4
3 changed files with 3 additions and 15 deletions

View File

@@ -22,7 +22,6 @@ import org.briarproject.nullsafety.NotNullByDefault;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.Executor;
import java.util.logging.Logger;
@@ -101,7 +100,6 @@ class RssFeedViewModel extends DbViewModel {
private List<Feed> loadFeeds(Transaction txn) throws DbException {
long start = now();
List<Feed> feeds = feedManager.getFeeds(txn);
Collections.sort(feeds);
logDuration(LOG, "Loading feeds", start);
return feeds;
}
@@ -145,7 +143,6 @@ class RssFeedViewModel extends DbViewModel {
Feed feed = feedManager.addFeed(url);
List<Feed> updated = addListItem(getList(feeds), feed);
if (updated != null) {
Collections.sort(updated);
feeds.postValue(new LiveResult<>(updated));
}
importResult.postEvent(IMPORTED);