@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); ocorrId = getArguments().getString(OCORR_CODE); if (savedInstanceState != null) { final Parcelable[] storedOoccurrences = savedInstanceState.getParcelableArray(OCCURRENCES_KEY); if (storedOoccurrences == null) { task = SubjectUtils.getOtherSubjectOccurrences(ocorrId, this, getActivity()); } else { occurrences = new OtherSubjectOccurrences[storedOoccurrences.length]; for (int i = 0; i < storedOoccurrences.length; ++i) occurrences[i] = (OtherSubjectOccurrences) storedOoccurrences[i]; if (populateList()) showMainScreen(); } } else task = SubjectUtils.getOtherSubjectOccurrences(ocorrId, this, getActivity()); }
protected void onRepeat() { showLoadingScreen(); task = SubjectUtils.getOtherSubjectOccurrences(ocorrId, this, getActivity()); }