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>();
|
List<Resource> allResources = new ArrayList<Resource>();
|
||||||
allResources.addAll(getActiveCodeResources());
|
allResources.addAll(getActiveCodeResources());
|
||||||
@@ -1208,7 +1209,7 @@ public class Application
|
|||||||
ProgressObserver obs, int[] alreadyValid, Set<Resource> unpacked)
|
ProgressObserver obs, int[] alreadyValid, Set<Resource> unpacked)
|
||||||
throws InterruptedException
|
throws InterruptedException
|
||||||
{
|
{
|
||||||
List<Resource> rsrcs = getAllResources();
|
List<Resource> rsrcs = getAllActiveResources();
|
||||||
List<Resource> failures = new ArrayList<Resource>();
|
List<Resource> failures = new ArrayList<Resource>();
|
||||||
|
|
||||||
// total up the file size of the resources to validate
|
// total up the file size of the resources to validate
|
||||||
@@ -1301,7 +1302,7 @@ public class Application
|
|||||||
*/
|
*/
|
||||||
public void clearValidationMarkers ()
|
public void clearValidationMarkers ()
|
||||||
{
|
{
|
||||||
clearValidationMarkers(getAllResources().iterator());
|
clearValidationMarkers(getAllActiveResources().iterator());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -508,7 +508,7 @@ public abstract class Getdown extends Thread
|
|||||||
reportTrackingEvent("app_start", -1);
|
reportTrackingEvent("app_start", -1);
|
||||||
|
|
||||||
// redownload any that are corrupt or invalid...
|
// 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).");
|
" rsrcs require update (" + alreadyValid[0] + " assumed valid).");
|
||||||
setStep(Step.REDOWNLOAD_RESOURCES);
|
setStep(Step.REDOWNLOAD_RESOURCES);
|
||||||
download(failures);
|
download(failures);
|
||||||
|
|||||||
Reference in New Issue
Block a user