예제 #1
0
 @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();
     }
   }
 }
예제 #2
0
  @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();
    }
  }