@Override
 protected void executePaginatedRequest(int page) {
   if (getActivity() != null) {
     if (query != null) {
       super.executePaginatedRequest(page);
       UsersSearchClient client = new UsersSearchClient(getActivity(), query, page);
       client.setOnResultCallback(this);
       client.execute();
     }
   }
 }
  @Override
  public void onViewCreated(View view, Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);

    view.setBackgroundColor(Color.WHITE);

    String query = getArguments().getString(SearchManager.QUERY, null);
    if (query != null) {
      setQuery(query);
    } else {
      setEmpty();
    }
  }