public void onDataSetSelected(String dataSetId, String dataSetLabel, String categoryComboId) { mDataSetButton.setText(dataSetLabel); mPeriodButton.setEnabled(true); mState.setDataSet(dataSetId, dataSetLabel, categoryComboId); mState.resetPeriod(); mState.resetCategoryStates(); handleViews(1); }
public void onUnitSelected(String orgUnitId, String orgUnitLabel) { mOrgUnitButton.setText(orgUnitLabel); mDataSetButton.setEnabled(true); mState.setOrgUnit(orgUnitId, orgUnitLabel); mState.resetDataSet(); mState.resetPeriod(); mState.resetCategoryStates(); handleViews(0); }