Пример #1
0
  public GetUserProfileTask createTask(String username, boolean refreshFromWebOnly) {
    UserFragment.this.setRefresh(true);

    if (task != null && task.isRunning()) task.cancel();

    Log.e("username", "username : " + username);

    return task = new GetUserProfileTask(getSherlockActivity(), username, refreshFromWebOnly);
  }
Пример #2
0
  @Override
  public void onDestroy() {
    super.onDestroy();

    if (task != null && task.isRunning()) task.cancel();
  }