diff --git a/app/src/main/java/org/ntlab/acanthus_client/views/main_menu_ui/edit/EditFragment.java b/app/src/main/java/org/ntlab/acanthus_client/views/main_menu_ui/edit/EditFragment.java index a5c45c9..f17960f 100644 --- a/app/src/main/java/org/ntlab/acanthus_client/views/main_menu_ui/edit/EditFragment.java +++ b/app/src/main/java/org/ntlab/acanthus_client/views/main_menu_ui/edit/EditFragment.java @@ -144,13 +144,14 @@ }); editViewModel.getAidJson().observe(getViewLifecycleOwner(), new Observer() { + //作品の新規作成時の処理 @Override public void onChanged(AidJson aidJson) { acanthus.setAid(aidJson.getAid()); - // acanthus.getAid(); transitionPaintActivity(); } }); + } //------------------------------------------------------------------------------------------------- @@ -159,13 +160,13 @@ super.onDestroyView(); binding = null; } + @Override public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); Button appButton = view.findViewById(R.id.Paint_button); Integer uid = 1; String token = "abc0"; - editViewModel.getWorkList(uid, token); //編集ボタン Button editButton = view.findViewById(R.id.Edit_button); @@ -197,6 +198,7 @@ startActivity(intent); } + //各作品毎の画面遷移 private void transitionPaintActivity(AnimationJson animationJson) { Acanthus acanthus = (Acanthus) getActivity().getApplication(); Intent intent = new Intent(acanthus, PaintActivity.class);