Esempio n. 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());
   }
 }
Esempio n. 2
0
 public void onSwipeRefreshPrepared() {
   if (pageTask.isLoadingFirstPage()) {
     if (hasView()) {
       getView().showRefreshing();
     }
   } else if (!pageTask.hasLoadedResources()) {
     loadInitialResources();
   }
 }