Пример #1
0
  public void navToActivitiesView(boolean forceRefresh) {
    // mActivity.disableUpButton();
    if (!Utils.isNetworkOn() || !forceRefresh) {
      List<SeafActivity> activities = getDataManager().getActivitiesFromCache();
      if (activities != null) {
        updateAdapterWithActivities(activities);
        return;
      }
    }

    // load repos in background
    showLoading(true);
    ConcurrentAsyncTask.execute(new LoadTask(getDataManager()));
  }
Пример #2
0
    private void resend() {
      if (mActivity == null) return;

      ConcurrentAsyncTask.execute(new LoadTask(dataManager));
    }