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())); }
private void resend() { if (mActivity == null) return; ConcurrentAsyncTask.execute(new LoadTask(dataManager)); }