diff --git a/app/src/main/java/org/ntlab/irisclient/CreateRoomActivity.java b/app/src/main/java/org/ntlab/irisclient/CreateRoomActivity.java index f9caf66..bd90614 100644 --- a/app/src/main/java/org/ntlab/irisclient/CreateRoomActivity.java +++ b/app/src/main/java/org/ntlab/irisclient/CreateRoomActivity.java @@ -79,7 +79,10 @@ //onResponseで成功 public void onResponse(Call call, Response response) { if (response.isSuccessful()) { - //iris.setPreferenceName(nickname); + //ridとnicknameをIrisへ + String rid = response.body().getRid(); + ((Iris) getApplication()).setRid(rid); + ((Iris) getApplication()).setNickname(nickname); //次の画面へ遷移 Intent intent = new Intent(CreateRoomActivity.this,OwnerRoomActivity.class); startActivity(intent);