@Override public void onResume() { super.onResume(); if (mRefreshing) { mSwipeLayout.setRefreshing(true); mSwipeLayout.setEnabled(false); mEmptyList.setVisibility(View.GONE); patientsRecyclerView.setVisibility(View.GONE); mSpinner.setVisibility(View.VISIBLE); } else if (mLastViewedPatientsList != null) { updatePatientsData(); } else { updateLastViewedList(); } }
@Override public void onAttach(Activity activity) { super.onAttach(activity); mFpmResponseListener = FindPatientsHelper.createLastViewedPatientListener((FindPatientsActivity) activity); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mIsConnectionAvailable = checkIfConnectionIsAvailable(); }