am 7a59191b
: Fix loading the quoted text when editing draft.
Merge commit '7a59191bf1089ec2b89128406637c2094077cbce' into eclair-plus-aosp * commit '7a59191bf1089ec2b89128406637c2094077cbce': Fix loading the quoted text when editing draft.
This commit is contained in:
commit
4666cabdfc
@ -116,17 +116,11 @@ public class EmailSyncAdapter extends AbstractSyncAdapter {
|
|||||||
msg.mTo = Address.pack(Address.parse(getValue()));
|
msg.mTo = Address.pack(Address.parse(getValue()));
|
||||||
break;
|
break;
|
||||||
case Tags.EMAIL_FROM:
|
case Tags.EMAIL_FROM:
|
||||||
String from = getValue();
|
Address[] froms = Address.parse(getValue());
|
||||||
String sender = from;
|
if (froms != null && froms.length > 0) {
|
||||||
int q = from.indexOf('\"');
|
msg.mDisplayName = froms[0].toFriendly();
|
||||||
if (q >= 0) {
|
|
||||||
int qq = from.indexOf('\"', q + 1);
|
|
||||||
if (qq > 0) {
|
|
||||||
sender = from.substring(q + 1, qq);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
msg.mDisplayName = sender;
|
msg.mFrom = Address.pack(froms);
|
||||||
msg.mFrom = Address.pack(Address.parse(from));
|
|
||||||
break;
|
break;
|
||||||
case Tags.EMAIL_CC:
|
case Tags.EMAIL_CC:
|
||||||
msg.mCc = Address.pack(Address.parse(getValue()));
|
msg.mCc = Address.pack(Address.parse(getValue()));
|
||||||
|
Loading…
Reference in New Issue
Block a user