Fixed bug, when Live Updates switch state was ignored when downloading Live Updates after settings dialog closed.

This commit is contained in:
GaidamakUA 2016-01-05 10:51:53 +02:00
parent 8a2d5c01a7
commit fdfb81422b

View file

@ -214,8 +214,10 @@ public class DownloadIndexesThread {
return; return;
} }
} }
for(IndexItem i : items) { for(IndexItem item : items) {
indexItemDownloading.add(i); if (!item.equals(currentDownloadingItem) && !indexItemDownloading.contains(item)) {
indexItemDownloading.add(item);
}
} }
if (currentDownloadingItem == null) { if (currentDownloadingItem == null) {
execute(new DownloadIndexesAsyncTask()); execute(new DownloadIndexesAsyncTask());