@Override public void onDestroy() { if (mSpiceManger.isStarted()) { mSpiceManger.shouldStop(); } super.onDestroy(); }
@Override public void onStart() { if (!mSpiceManger.isStarted()) { mSpiceManger.start(getActivity().getApplicationContext()); onRefresh(); } super.onStart(); }
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); getRecyclerView() .addOnScrollListener( new EndlessRecycleScrollListener() { @Override public void onLoadMore() { loadFeed(); } }); }