示例#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();
             }
           });
 }