use of org.wikipedia.html.PixelDensityDescriptorParser in project apps-android-wikipedia by wikimedia.
the class PageCacher method loadIntoCache.
static void loadIntoCache(@NonNull PageTitle title) {
L.d("Loading page into cache: " + title.getPrefixedText());
WikipediaApp app = WikipediaApp.getInstance();
PageImageUrlParser parser = new PageImageUrlParser(new ImageTagParser(), new PixelDensityDescriptorParser());
PageClient client = PageClientFactory.create(title.getWikiSite(), title.namespace());
app.getSessionFunnel().leadSectionFetchStart();
leadReq(client, title).enqueue(new LeadCallback(title.getWikiSite(), parser));
app.getSessionFunnel().restSectionsFetchStart();
remainingReq(client, title).enqueue(new RemainingCallback(title.getWikiSite(), parser));
}
Aggregations