/** {@inheritDoc} */ @Override protected void onResume() { super.onResume(); // Update add to contacts status updateAddToContactsStatus(ViewUtil.isCompoundChecked(getContentView(), R.id.addToContacts)); flagPaused = false; }
/** {@inheritDoc} */ @Override protected void onDestroy() { super.onDestroy(); if (flagPaused) { return; } if (ViewUtil.isCompoundChecked(getContentView(), R.id.addToContacts) && responseCode.equals(AuthorizationResponse.ACCEPT)) { // Add to contacts Spinner groupSpinner = (Spinner) findViewById(R.id.selectGroupSpinner); ContactListUtils.addContact( request.contact.getProtocolProvider(), (MetaContactGroup) groupSpinner.getSelectedItem(), request.contact.getAddress()); } request.notifyResponseReceived(responseCode); }