diff --git a/app/src/main/java/com/example/cosmosclient/views/CreateGroupActivity.java b/app/src/main/java/com/example/cosmosclient/views/CreateGroupActivity.java index 605afc8..14e774e 100644 --- a/app/src/main/java/com/example/cosmosclient/views/CreateGroupActivity.java +++ b/app/src/main/java/com/example/cosmosclient/views/CreateGroupActivity.java @@ -1,6 +1,7 @@ package com.example.cosmosclient.views; import android.media.Image; +import android.os.Handler; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.text.Editable; @@ -59,6 +60,14 @@ createGroupButton.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View view){ + //ボタン連打防止 + createGroupButton.setEnabled(false); + new Handler().postDelayed(new Runnable() { + public void run() { + createGroupButton.setEnabled(true); + } + }, 1000L); + try { Call createGroup = createGroupService.createGroup(groupNameText.getText().toString(), uId, token);