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;
}
}
for(IndexItem i : items) {
indexItemDownloading.add(i);
for(IndexItem item : items) {
if (!item.equals(currentDownloadingItem) && !indexItemDownloading.contains(item)) {
indexItemDownloading.add(item);
}
}
if (currentDownloadingItem == null) {
execute(new DownloadIndexesAsyncTask());