protected void onServiceModeSelection(ServiceModeOption serviceModeOption) { currentServiceModeOption = serviceModeOption; serviceModeView.setText(serviceModeOption.name()); clientsAdapter.refreshList( currentVillageFilter, currentServiceModeOption, currentSearchFilter, currentSortOption); populateClientListHeaderView(serviceModeOption.getHeaderProvider()); }
private void setupAdapter() { clientsAdapter = adapter(); clientsAdapter.registerDataSetObserver( new DataSetObserver() { @Override public void onChanged() { paginationViewHandler.refresh(); } }); }
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); }