openmrs-client/src/main/java/org/openmrs/mobile/activities/lastviewedpatients/LastViewedPatientsActivity.java
// This listener restores last viewed list to initial state when query is empty or SearchView is closed.
This listener restores last viewed list to initial state when query is empty or SearchView is closed.
This listener restores last viewed list to initial state when query is empty or SearchView is closed .
@Override
            public boolean onQueryTextChange(String query) {
                presenter.updateLastViewedList(query);
                return true;
            }
@ Override public boolean onQueryTextChange ( String query ) { presenter . updateLastViewedList ( query ) ; return true ; }
This listener restores last viewed list to initial state when query is empty or SearchView is closed.
This listener restores last viewed list to initial state when query is empty or SearchView is closed .