SnoopMetadata snoop = new SnoopMetadata() {
@Override
public boolean snoopMetadata(Metadata meta, ClientContext context) {
+ if (meta.isArchiveManifest()) {
+ return false;
+ }
String mimeType = meta.getMIMEType();
boolean cancel = (mimeType == null) || backgroundFetchCallback.shouldCancel(uri, mimeType, meta.dataLength());
if (cancel) {
}
};
FetchContext fetchContext = client.getFetchContext();
+ fetchContext.dontEnterImplicitArchives = false;
try {
ClientGetter clientGetter = client.fetch(uri, 2097152, callback, fetchContext, RequestStarter.INTERACTIVE_PRIORITY_CLASS);
clientGetter.setMetaSnoop(snoop);