Example #1
0
 @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());
   }
 }
Example #2
0
 @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);
 }