Пример #1
0
 @Override
 public void onDestroy() {
   if (mSpiceManger.isStarted()) {
     mSpiceManger.shouldStop();
   }
   super.onDestroy();
 }
Пример #2
0
 @Override
 public void onStart() {
   if (!mSpiceManger.isStarted()) {
     mSpiceManger.start(getActivity().getApplicationContext());
     onRefresh();
   }
   super.onStart();
 }
Пример #3
0
 @Override
 public void onActivityCreated(Bundle savedInstanceState) {
   super.onActivityCreated(savedInstanceState);
   getRecyclerView()
       .addOnScrollListener(
           new EndlessRecycleScrollListener() {
             @Override
             public void onLoadMore() {
               loadFeed();
             }
           });
 }