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 onSortSelection(SortOption sortBy) { currentSortOption = sortBy; appliedSortView.setText(sortBy.name()); clientsAdapter.refreshList( currentVillageFilter, currentServiceModeOption, currentSearchFilter, currentSortOption); }