public void setSwitchChildDialogueData() { appController = (AppController) getApplicationContext(); parentModel = appController.getParentsData(); if (parentModel != null && parentModel.getNumberOfChildren() >= 0) { selectedChildPosition = appController.getSelectedChild(); } }
public void onSwitchChild(int selectedChildPosition) { this.selectedChildPosition = selectedChildPosition; appController.setSelectedChild(selectedChildPosition); dialog.dismiss(); }