private void updateDefaultOptions() { currentSearchFilter = new ECSearchOption(null); currentVillageFilter = defaultOptionProvider.villageFilter(); currentServiceModeOption = defaultOptionProvider.serviceMode(); currentSortOption = defaultOptionProvider.sortOption(); appliedSortView.setText(currentSortOption.name()); appliedVillageFilterView.setText(currentVillageFilter.name()); serviceModeView.setText(currentServiceModeOption.name()); titleLabelView.setText(defaultOptionProvider.nameInShortFormForTitle()); }
protected void onFilterSelection(FilterOption filter) { currentVillageFilter = filter; appliedVillageFilterView.setText(filter.name()); clientsAdapter.refreshList( currentVillageFilter, currentServiceModeOption, currentSearchFilter, currentSortOption); }