Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 392f7342 authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

rename a field in DownloadSrcController: taskIterator -> sourceIterator

parent 2e5cc9c5
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ public class DownloadSrcController extends AbstractSubController {
    private @FXML Button restartDownloadBtn;
    
    private HashMap<String, String> sourcesToDownload;
    private Iterator<HashMap.Entry<String, String>> taskIterator;
    private Iterator<HashMap.Entry<String, String>> sourceIterator;
    private DownloadService currentService;
    
    @Override    
@@ -75,15 +75,15 @@ public class DownloadSrcController extends AbstractSubController {
            return;
        }

        taskIterator =  sourcesToDownload.entrySet().iterator();
        sourceIterator =  sourcesToDownload.entrySet().iterator();
        startNextDownload();
    }
    
    private boolean startNextDownload(){
        logger.info("startNextDownload()");
        logger.debug("taskIterator has next ? {} "+taskIterator.hasNext());
        if(taskIterator.hasNext()){
            HashMap.Entry<String, String> source = taskIterator.next();
        logger.debug("taskIterator has next ? {} "+sourceIterator.hasNext());
        if(sourceIterator.hasNext()){
            HashMap.Entry<String, String> source = sourceIterator.next();
            
            currentService = new DownloadService(source.getKey(), source.getValue());
            bindProgressUIToService(currentService);