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 0cfd53c..2efeef7 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 @@ -165,8 +165,9 @@ //Integer uid = acanthus.getPreferenceUid(); String name = ((EditText)view.findViewById(R.id.AnimationName)).getText().toString(); //String token = acanthus.getPreferenceToken(); - Integer aid = editViewModel.startWorkEdit(uid, name, token); - acanthus.setAid(aid); + //Integer aid = editViewModel.startWorkEdit(uid, name, token); + editViewModel.startWorkEdit(uid, name, token); + //editViewModel.getAidJson().observe(); transitionPaintActivity(); }); @@ -192,6 +193,7 @@ Acanthus acanthus = (Acanthus) getActivity().getApplication(); Intent intent = new Intent(acanthus, PaintActivity.class); intent.putExtra("AnimationJsonData", animationJson); + acanthus.setAid(animationJson.getAid()); startActivity(intent); }