Refactor TravelLocalDataHelper#refreshCachedData()

This commit is contained in:
Alex Sytnyk 2018-04-30 15:03:34 +03:00
parent c9acd57e1f
commit f9e1588e4b

View file

@ -36,8 +36,7 @@ public class TravelLocalDataHelper {
void refreshCachedData() {
historyMap = dbHelper.getAllHistoryMap();
savedArticles.clear();
savedArticles.addAll(dbHelper.readSavedArticles());
savedArticles = dbHelper.readSavedArticles();
}
public List<WikivoyageSearchHistoryItem> getAllHistory() {