diff --git a/app/src/main/java/com/example/cosmosclient/views/MemberListActivity.java b/app/src/main/java/com/example/cosmosclient/views/MemberListActivity.java index ad97c66..242c8f4 100644 --- a/app/src/main/java/com/example/cosmosclient/views/MemberListActivity.java +++ b/app/src/main/java/com/example/cosmosclient/views/MemberListActivity.java @@ -5,6 +5,7 @@ import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri; +import android.os.Handler; import android.support.design.widget.FloatingActionButton; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; @@ -48,10 +49,18 @@ TextView groupName = findViewById(R.id.groupName); //メンバー追加ボタン処理 - FloatingActionButton fab = findViewById(R.id.addrequest_button); + final FloatingActionButton fab = findViewById(R.id.addrequest_button); fab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { + //ボタン連打防止 + fab.setEnabled(false); + new Handler().postDelayed(new Runnable() { + public void run() { + fab.setEnabled(true); + } + }, 1000L); + startActivity(new Intent(MemberListActivity.this, AddMemberActivity.class)); finish();