diff --git a/app/src/main/java/com/example/citrusclient/views/CalendarFragment.java b/app/src/main/java/com/example/citrusclient/views/CalendarFragment.java index 3c3664a..5b0d307 100644 --- a/app/src/main/java/com/example/citrusclient/views/CalendarFragment.java +++ b/app/src/main/java/com/example/citrusclient/views/CalendarFragment.java @@ -67,6 +67,7 @@ Calendar calendar = Calendar.getInstance(); year = calendar.get(Calendar.YEAR); //現在の年 month = calendar.get(Calendar.MONTH) + 1; //現在の月 + day = calendar.get(Calendar.DATE); //現在の日 } public CalendarFragment(int year, int month) { @@ -410,6 +411,9 @@ int one = 0; RadioGroup selectButton = getView().findViewById(R.id.SelectButton); + Citrus citrus = (Citrus)(getActivity().getApplication()); + int bookId = citrus.getCurBookId(); + for(int i = 0; i < 6; i++) { TableRow tableRow = (TableRow) tableLayout.getChildAt(i); for(int j = 0; j < 7; j++) { @@ -420,7 +424,6 @@ one++; } if(this.schedules != null && one == 1) { - int select = selectButton.getCheckedRadioButtonId(); if(select != -1){ if(select == R.id.rbTodo){