protected void onServiceModeSelection(ServiceModeOption serviceModeOption) { currentServiceModeOption = serviceModeOption; serviceModeView.setText(serviceModeOption.name()); clientsAdapter.refreshList( currentVillageFilter, currentServiceModeOption, currentSearchFilter, currentSortOption); populateClientListHeaderView(serviceModeOption.getHeaderProvider()); }
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()); }