@Override public void onClick(View view) { synchronized (mState) { if (mState == State.UPDATING) { return; } mState = State.UPDATING; service.acceptInvitation( crowd, new Registrant(mLocalHandler, ACCEPT_INVITATION_DONE, null)); } }
@Override public void onClick(View view) { if (isInRejectReasonMode) { synchronized (mState) { if (mState == State.UPDATING) { return; } mState = State.UPDATING; service.refuseInvitation( crowd, mReasonET.getEditableText().toString(), new Registrant(mLocalHandler, REFUSE_INVITATION_DONE, null)); } return; } else { Group group = GlobalHolder.getInstance().getGroupById(crowd.getId()); Intent i = new Intent(PublicIntent.START_CONVERSACTION_ACTIVITY); i.addCategory(PublicIntent.DEFAULT_CATEGORY); i.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); i.putExtra("obj", new ConversationNotificationObject(new CrowdConversation(group))); startActivity(i); } }