diff --git a/app/src/main/java/org/ntlab/irisclient/MemberRoomActivity.java b/app/src/main/java/org/ntlab/irisclient/MemberRoomActivity.java index 03b494d..9cfcbc5 100644 --- a/app/src/main/java/org/ntlab/irisclient/MemberRoomActivity.java +++ b/app/src/main/java/org/ntlab/irisclient/MemberRoomActivity.java @@ -127,6 +127,7 @@ redMasterButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { + ((Iris) getApplication()).setMaster(true); roomViewModel.changeBelongsAndMaster(roomId, myName,"r",true); } }); @@ -135,6 +136,7 @@ redSpyButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { + ((Iris) getApplication()).setMaster(false); roomViewModel.changeBelongsAndMaster(roomId, myName,"r",false); } }); @@ -143,6 +145,7 @@ blueMasterButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { + ((Iris) getApplication()).setMaster(true); roomViewModel.changeBelongsAndMaster(roomId, myName,"b",true); } }); @@ -151,6 +154,7 @@ blueSpyButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { + ((Iris) getApplication()).setMaster(false); roomViewModel.changeBelongsAndMaster(roomId, myName,"b",false); } });