diff --git a/app/src/main/java/org/ntlab/irisclient/CreateRoomActivity.java b/app/src/main/java/org/ntlab/irisclient/CreateRoomActivity.java index 8354a6f..f47a29f 100644 --- a/app/src/main/java/org/ntlab/irisclient/CreateRoomActivity.java +++ b/app/src/main/java/org/ntlab/irisclient/CreateRoomActivity.java @@ -31,7 +31,6 @@ } //------------------------------------------------------------------------------------------------------------------------------------------ //バックボタンを押した場合、前の画面に遷移 - Intent intent = getIntent(); ImageButton imageButton = (ImageButton) findViewById(R.id.backButton); // view経由でimageButtonを探す imageButton.setOnClickListener(new View.OnClickListener() { @@ -55,10 +54,9 @@ //ニックネームが入力されていれば次の画面へ } else { - Intent i = new Intent(getApplication(), MainActivity/*OwnerRoomActivityに変更する*/.class); - startActivity(i); - } - + Intent intent = new Intent(CreateRoomActivity.this,OwnerRoomActivity.class); + startActivity(intent); + } } });