moved check for if currentDownloadingItem tp the top

This commit is contained in:
Chumva 2018-02-26 13:33:51 +02:00
parent 64cfd1d4b5
commit 0d03a7d472

View file

@ -120,12 +120,12 @@ public class DownloadIndexesThread {
StringBuilder contentText = new StringBuilder(); StringBuilder contentText = new StringBuilder();
List<IndexItem> ii = getCurrentDownloadingItems(); List<IndexItem> ii = getCurrentDownloadingItems();
for (IndexItem i : ii) { for (IndexItem i : ii) {
if (contentText.length() > 0) {
contentText.append(", ");
}
if (i == currentDownloadingItem) { if (i == currentDownloadingItem) {
continue; continue;
} }
if (contentText.length() > 0) {
contentText.append(", ");
}
contentText.append(i.getVisibleName(app, app.getRegions())); contentText.append(i.getVisibleName(app, app.getRegions()));
if (i.getType() != null) { if (i.getType() != null) {
contentText.append(" ").append(i.getType().getString(app)); contentText.append(" ").append(i.getType().getString(app));