@Override protected void onLoad(@Nullable Bundle savedInstanceState, boolean reusing) { super.onLoad(savedInstanceState, reusing); if (pageTask.hasLoadedResources()) { getView() .showResources(pageTask.getLoadedResources(), 0, 0, pageTask.getLoadedResources().size()); } }
@Override public void onPageChanged(PageTask pageTask, int start, int before, int count) { if (!hasView()) { return; } //noinspection unchecked Collection<E> resources = pageTask.getLoadedResources(); getView().showResources(resources, start, before, count); }