diff --git a/app/src/main/java/com/example/nemophila/viewmodels/ShopsViewModel.java b/app/src/main/java/com/example/nemophila/viewmodels/ShopsViewModel.java index 738202d..6506043 100644 --- a/app/src/main/java/com/example/nemophila/viewmodels/ShopsViewModel.java +++ b/app/src/main/java/com/example/nemophila/viewmodels/ShopsViewModel.java @@ -77,7 +77,7 @@ System.out.println(shopsPreData); System.out.println(response.body()); shopsLiveData.setValue(response.body()); // LiveDataを書き換える - shopsPreData = response.body(); + shopsPreData = response.body(); // shopsPreDataを更新 } else { System.out.println("LiveDataとresponse.body()が一致"); }