Ejemplo n.º 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()));
  }
Ejemplo n.º 2
0
    private void resend() {
      if (mActivity == null) return;

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