@Override
 public void onActivityCreated(Bundle bundle) {
   super.onActivityCreated(bundle);
   setUpListView();
   getCommentAdapter().loadComments();
   if (!NetworkUtils.isNetworkAvailable(getActivity())) {
     return;
   }
   if (!mHasAutoRefreshedComments) {
     updateComments(false);
     mPullToRefreshHelper.setRefreshing(true);
     mHasAutoRefreshedComments = true;
   }
 }
 @Override
 public void onDestroyView() {
   super.onDestroyView();
   mPullToRefreshHelper.unregisterReceiver(getActivity());
 }
 @Override
 public void onViewCreated(View view, Bundle savedInstanceState) {
   super.onViewCreated(view, savedInstanceState);
   mPullToRefreshHelper.registerReceiver(getActivity());
 }
 public void setRefreshing(boolean refreshing) {
   mPullToRefreshHelper.setRefreshing(refreshing);
 }