diff --git a/app/src/main/java/com/example/citrusclient/views/CreateTodoFragment.java b/app/src/main/java/com/example/citrusclient/views/CreateTodoFragment.java index 3b0ca1e..ed88dab 100644 --- a/app/src/main/java/com/example/citrusclient/views/CreateTodoFragment.java +++ b/app/src/main/java/com/example/citrusclient/views/CreateTodoFragment.java @@ -213,7 +213,9 @@ deleteButton.setVisibility(View.INVISIBLE); // 追加時ボタンを非表示 } deleteButton.setOnClickListener(v->{ - //ここにdelete処理か確認ダイアログ(いるかな) + todosViewModel.deleteTodo(accountId,editBook.getBookId(),editTodo.getYear(), + editTodo.getMonth(),editTodo.getDay(), editTodo.getTodoId(), token); + ((MainActivity)getActivity()).backFragment(); }); //追加ボタン処理