Fix NPE in uiSaveMessage
Bug: 6675492 Change-Id: Ic63e4feacecd9b347402715dd31f0bd5fd962348
This commit is contained in:
parent
23359fc69a
commit
337729c681
@ -3234,10 +3234,13 @@ outer:
|
||||
break;
|
||||
}
|
||||
msg.mFlags = flags;
|
||||
int draftInfo = values.getAsInteger(UIProvider.MessageColumns.QUOTE_START_POS);
|
||||
int draftInfo = 0;
|
||||
if (values.containsKey(UIProvider.MessageColumns.QUOTE_START_POS)) {
|
||||
draftInfo = values.getAsInteger(UIProvider.MessageColumns.QUOTE_START_POS);
|
||||
if (values.getAsInteger(UIProvider.MessageColumns.APPEND_REF_MESSAGE_CONTENT) != 0) {
|
||||
draftInfo |= Message.DRAFT_INFO_APPEND_REF_MESSAGE;
|
||||
}
|
||||
}
|
||||
msg.mDraftInfo = draftInfo;
|
||||
String ref = values.getAsString(UIProvider.MessageColumns.REF_MESSAGE_ID);
|
||||
if (ref != null && msg.mQuotedTextStartPos > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user