Change name to getAllActiveResources for future comprehensibility.
This commit is contained in:
@@ -302,9 +302,10 @@ public class Application
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of all the {@link Resource} objects used by this application.
|
||||
* Returns a list of all the active {@link Resource} objects used by this application (code and
|
||||
* non-code).
|
||||
*/
|
||||
public List<Resource> getAllResources ()
|
||||
public List<Resource> getAllActiveResources ()
|
||||
{
|
||||
List<Resource> allResources = new ArrayList<Resource>();
|
||||
allResources.addAll(getActiveCodeResources());
|
||||
@@ -1208,7 +1209,7 @@ public class Application
|
||||
ProgressObserver obs, int[] alreadyValid, Set<Resource> unpacked)
|
||||
throws InterruptedException
|
||||
{
|
||||
List<Resource> rsrcs = getAllResources();
|
||||
List<Resource> rsrcs = getAllActiveResources();
|
||||
List<Resource> failures = new ArrayList<Resource>();
|
||||
|
||||
// total up the file size of the resources to validate
|
||||
@@ -1301,7 +1302,7 @@ public class Application
|
||||
*/
|
||||
public void clearValidationMarkers ()
|
||||
{
|
||||
clearValidationMarkers(getAllResources().iterator());
|
||||
clearValidationMarkers(getAllActiveResources().iterator());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -508,7 +508,7 @@ public abstract class Getdown extends Thread
|
||||
reportTrackingEvent("app_start", -1);
|
||||
|
||||
// redownload any that are corrupt or invalid...
|
||||
log.info(failures.size() + " of " + _app.getAllResources().size() +
|
||||
log.info(failures.size() + " of " + _app.getAllActiveResources().size() +
|
||||
" rsrcs require update (" + alreadyValid[0] + " assumed valid).");
|
||||
setStep(Step.REDOWNLOAD_RESOURCES);
|
||||
download(failures);
|
||||
|
||||
Reference in New Issue
Block a user