openmrs-client/src/main/java/org/openmrs/mobile/activities/syncedpatients/SyncedPatientsFragment.java
/**
     * This method is used to update data in SyncedPatientRecyclerView.
     * It creates SyncedPatientsRecyclerViewAdapter and fills it with fresh data.
     * Then new instance of SyncedPatientsRecyclerViewAdapter is set to its SyncedPatientRecyclerView.
     *
     * @param patientList new set of data
     */
This method is used to update data in SyncedPatientRecyclerView.
It creates SyncedPatientsRecyclerViewAdapter and fills it with fresh data.
Then new instance of SyncedPatientsRecyclerViewAdapter is set to its SyncedPatientRecyclerView.

@param patientList new set of data
This method is used to update data in SyncedPatientRecyclerView . It creates SyncedPatientsRecyclerViewAdapter and fills it with fresh data . Then new instance of SyncedPatientsRecyclerViewAdapter is set to its SyncedPatientRecyclerView . @param patientList new set of data
@Override
    public void updateAdapter(List<Patient> patientList) {
        SyncedPatientsRecyclerViewAdapter adapter = new SyncedPatientsRecyclerViewAdapter(this, patientList);
        adapter.notifyDataSetChanged();
        syncedPatientRecyclerView.setAdapter(adapter);
    }
@ Override public void updateAdapter ( List < Patient > patientList ) { SyncedPatientsRecyclerViewAdapter adapter = new SyncedPatientsRecyclerViewAdapter ( this , patientList ) ; adapter . notifyDataSetChanged ( ) ; syncedPatientRecyclerView . setAdapter ( adapter ) ; }
This method is used to update data in SyncedPatientRecyclerView.
This method is used to update data in SyncedPatientRecyclerView .