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 3b765dd..68bcb63 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 @@ -36,12 +36,17 @@ binding = FragmentEditBinding.inflate(inflater, container, false); View root = binding.getRoot(); + TextView textView = binding.textMake; - final TextView textView = binding.textMake; + Acanthus acanthus = (Acanthus) getActivity().getApplication(); + Integer uid = acanthus.getPreferenceUid(); + String token = acanthus.getPreferenceToken(); + editViewModel.getWorkList(uid, token); + editViewModel.getWorkJson().observe(getViewLifecycleOwner(), new Observer() { @Override public void onChanged(@Nullable WorkJson workJson) { - + textView.setText(workJson.getAid().toString()); } }); return root;