Commit 456d53e1 by Oliver Woodman

Minor cleanup.

parent 2d97d31a
......@@ -171,7 +171,7 @@ public class ManifestFetcher<T> implements Loader.Callback {
loader = new Loader("manifestLoader");
}
if (!loader.isLoading()) {
currentLoadable = new ManifestLoadable(userAgent);
currentLoadable = new ManifestLoadable();
loader.startLoading(currentLoadable, this);
}
}
......@@ -221,7 +221,7 @@ public class ManifestFetcher<T> implements Loader.Callback {
this.callbackLooper = callbackLooper;
this.wrappedCallback = wrappedCallback;
singleUseLoader = new Loader("manifestLoader:single");
singleUseLoadable = new ManifestLoadable(userAgent);
singleUseLoadable = new ManifestLoadable();
}
public void startLoading() {
......@@ -269,15 +269,9 @@ public class ManifestFetcher<T> implements Loader.Callback {
private static final int TIMEOUT_MILLIS = 10000;
private final String userAgent;
/* package */ volatile T result;
private volatile boolean isCanceled;
public ManifestLoadable(String userAgent) {
this.userAgent = userAgent;
}
@Override
public void cancelLoad() {
// We don't actually cancel anything, but we need to record the cancellation so that
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment