diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml
index 69e56fe..7859c16 100644
--- a/.idea/deploymentTargetDropDown.xml
+++ b/.idea/deploymentTargetDropDown.xml
@@ -7,11 +7,11 @@
-
+
-
+
\ No newline at end of file
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index bdd5b80..6dddb84 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -68,11 +68,11 @@
android:name=".MyPageActivity"
android:exported="true"
android:label="@string/title_activity_my_page">
-
-
+
+
-
-
+
+
posts = new ArrayList<>();
getShopPostJson(sid);
for(PostJson pj: postJson) {
-
+ Post post = new Post(pj);
+ posts.add(post);
}
+ shopPostsLiveData.setValue(posts);
+ System.out.println("完了しました");
}
+ //PostJsonを取得
private void getShopPostJson(String sid) {
Call> call = postsRest.getShopPosts(sid);
call.enqueue(new Callback>() {
@Override
public void onResponse(Call> call, Response> response) {
if (response.isSuccessful()) {
+ System.out.println("responseGood");
postJson = response.body();
} else {
+ System.out.println("responseError");
//レスポンスエラー
}
}
@Override
public void onFailure(Call> call, Throwable t) {
+ System.out.println("networkError");
//通信エラー
}
});