protected void onServiceModeSelection(ServiceModeOption serviceModeOption) { currentServiceModeOption = serviceModeOption; serviceModeView.setText(serviceModeOption.name()); clientsAdapter.refreshList( currentVillageFilter, currentServiceModeOption, currentSearchFilter, currentSortOption); populateClientListHeaderView(serviceModeOption.getHeaderProvider()); }
protected void onFilterSelection(FilterOption filter) { currentVillageFilter = filter; appliedVillageFilterView.setText(filter.name()); clientsAdapter.refreshList( currentVillageFilter, currentServiceModeOption, currentSearchFilter, currentSortOption); }
protected void onSortSelection(SortOption sortBy) { currentSortOption = sortBy; appliedSortView.setText(sortBy.name()); clientsAdapter.refreshList( currentVillageFilter, currentServiceModeOption, currentSearchFilter, currentSortOption); }