@Override
protected void task() {
List<IAutoTask> autoTasks = AutoTaskManager.getAutoTasks();
for (int i = 0; i < autoTasks.size(); i++) {
try {
IAutoTask task = autoTasks.get(i);
setProgress((float) i / autoTasks.size());
task.applicationStarted(getWindowManager());
} catch (Exception e) {
SimSystem.report(e);
}
}
}