1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-02 00:25:10 -04:00

Fixed bug introduced with 6f525f0e31

Intent extra was renamed but the code in MessageCompose still used the
(hardcoded) old name.
This commit is contained in:
cketti 2012-04-11 04:47:10 +02:00
parent 9d854a0f6f
commit ff4d6a66c8

View File

@ -1837,16 +1837,15 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
case CONTACT_PICKER_TO2:
case CONTACT_PICKER_CC2:
case CONTACT_PICKER_BCC2:
String emailAddr = data.getStringExtra("EMAIL_ADDRESS");
String emailAddr = data.getStringExtra(EmailAddressList.EXTRA_EMAIL_ADDRESS);
if (requestCode == CONTACT_PICKER_TO2) {
addAddress(mToView, new Address(emailAddr, ""));
} else if (requestCode == CONTACT_PICKER_CC2) {
addAddress(mCcView, new Address(emailAddr, ""));
} else if (requestCode == CONTACT_PICKER_BCC2) {
addAddress(mBccView, new Address(emailAddr, ""));
} else {
return;
}
break;
}
}