diff --git a/app/src/main/java/com/example/nemophila/MapsFragment.java b/app/src/main/java/com/example/nemophila/MapsFragment.java index a078e85..aa88095 100644 --- a/app/src/main/java/com/example/nemophila/MapsFragment.java +++ b/app/src/main/java/com/example/nemophila/MapsFragment.java @@ -90,6 +90,7 @@ postsViewModel = new ViewModelProvider(getActivity()).get(PostsViewModel.class); //フレンドの更新が入った時の処理(LiveDataへの購読) + friendViewModel.getFriends(nemophila.getUid()); friendViewModel.getFriendsLiveData().observe(getActivity(), friends -> { Toast.makeText(getActivity(), String.format("フレンドの更新を確認しました。"),