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