Fix NPE in uiSaveMessage
Bug: 6675492 Change-Id: Ic63e4feacecd9b347402715dd31f0bd5fd962348
This commit is contained in:
parent
23359fc69a
commit
337729c681
@ -3234,9 +3234,12 @@ outer:
|
||||
break;
|
||||
}
|
||||
msg.mFlags = flags;
|
||||
int 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;
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user