diff --git a/app/src/main/java/com/example/cosmosclient/views/AddMemberActivity.java b/app/src/main/java/com/example/cosmosclient/views/AddMemberActivity.java index 92cc9ec..0446342 100644 --- a/app/src/main/java/com/example/cosmosclient/views/AddMemberActivity.java +++ b/app/src/main/java/com/example/cosmosclient/views/AddMemberActivity.java @@ -15,6 +15,8 @@ import android.widget.TextView; import com.example.cosmosclient.R; +import com.example.cosmosclient.app.Cosmos; +import com.example.cosmosclient.entities.Group; public class AddMemberActivity extends AppCompatActivity implements AdapterView.OnItemClickListener { @@ -35,7 +37,13 @@ protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_add_member); - + /*ここからグループ名表示*/ + TextView groupName = findViewById(R.id.groupName); + //現在のグループ情報を格納しているものからgIdを取得 + Cosmos app = (Cosmos) getApplication(); + Group curentGroup = app.getCurentGroup(); + groupName.setText(curentGroup.getName()); + /*終了*/ // ListViewのインスタンスを生成 ListView listView = findViewById(R.id.list_view);