diff --git a/app/src/main/java/org/ntlab/irisclient/TestGameActivity.java b/app/src/main/java/org/ntlab/irisclient/TestGameActivity.java index 34a11d4..de74e3b 100644 --- a/app/src/main/java/org/ntlab/irisclient/TestGameActivity.java +++ b/app/src/main/java/org/ntlab/irisclient/TestGameActivity.java @@ -54,6 +54,8 @@ if (response.isSuccessful()){ System.out.println("通信成功"); ((Iris) getApplication()).setMemberList(response.body()); + Intent intent = new Intent(TestGameActivity.this, GameMasterActivity.class); + startActivity(intent); } } @Override @@ -62,9 +64,6 @@ System.out.println(t); } }); - - Intent intent = new Intent(TestGameActivity.this, GameMasterActivity.class); - startActivity(intent); } }); @@ -83,6 +82,8 @@ if (response.isSuccessful()){ System.out.println("通信成功:createDrawTest"); ((Iris) getApplication()).setMemberList(response.body()); + Intent intent = new Intent(TestGameActivity.this, GameMemberActivity.class); + startActivity(intent); } } @Override @@ -91,9 +92,6 @@ System.out.println(t); } }); - - Intent intent = new Intent(TestGameActivity.this, GameMemberActivity.class); - startActivity(intent); } }); @@ -112,6 +110,8 @@ if (response.isSuccessful()){ System.out.println("通信成功:createDrawTest"); ((Iris) getApplication()).setMemberList(response.body()); + Intent intent = new Intent(TestGameActivity.this, GameMasterActivity.class); + startActivity(intent); } } @Override @@ -120,9 +120,6 @@ System.out.println(t); } }); - - Intent intent = new Intent(TestGameActivity.this, GameMasterActivity.class); - startActivity(intent); } }); @@ -141,6 +138,8 @@ if (response.isSuccessful()){ System.out.println("通信成功:createDrawTest"); ((Iris) getApplication()).setMemberList(response.body()); + Intent intent = new Intent(TestGameActivity.this, GameMemberActivity.class); + startActivity(intent); } } @Override @@ -149,9 +148,6 @@ System.out.println(t); } }); - - Intent intent = new Intent(TestGameActivity.this, GameMemberActivity.class); - startActivity(intent); } });