diff --git a/app/src/main/java/org/ntlab/irisclient/MemberRoomActivity.java b/app/src/main/java/org/ntlab/irisclient/MemberRoomActivity.java index 21a59d0..9a73037 100644 --- a/app/src/main/java/org/ntlab/irisclient/MemberRoomActivity.java +++ b/app/src/main/java/org/ntlab/irisclient/MemberRoomActivity.java @@ -64,6 +64,16 @@ } }); + roomViewModel.getStateLiveData().observe(this, new Observer() { + @Override + public void onChanged(Integer state) { + if(state >= 1){ + Intent intent = new Intent(MemberRoomActivity.this,DrawingActivity.class); + startActivity(intent); + } + } + }); + //-------------------------------------------------------------------------- //各ボタン処理