Fix crash in large tests (#2108431)
Change-Id: I82a0ec81361b722bfa1cb4f197e3c999936ff192
This commit is contained in:
parent
cef2344e70
commit
6d1271aee7
@ -672,6 +672,7 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
|
|||||||
String action = getIntent().getAction();
|
String action = getIntent().getAction();
|
||||||
// Use the Intent to set flags saying this message is a reply or a forward and save the
|
// Use the Intent to set flags saying this message is a reply or a forward and save the
|
||||||
// unique id of the source message
|
// unique id of the source message
|
||||||
|
if (mSource != null) {
|
||||||
if (ACTION_REPLY.equals(action) || ACTION_REPLY_ALL.equals(action)) {
|
if (ACTION_REPLY.equals(action) || ACTION_REPLY_ALL.equals(action)) {
|
||||||
message.mFlags |= Message.FLAG_TYPE_REPLY;
|
message.mFlags |= Message.FLAG_TYPE_REPLY;
|
||||||
message.mSourceKey = mSource.mId;
|
message.mSourceKey = mSource.mId;
|
||||||
@ -680,6 +681,7 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
|
|||||||
message.mSourceKey = mSource.mId;
|
message.mSourceKey = mSource.mId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private Attachment[] getAttachmentsFromUI() {
|
private Attachment[] getAttachmentsFromUI() {
|
||||||
int count = mAttachments.getChildCount();
|
int count = mAttachments.getChildCount();
|
||||||
|
Loading…
Reference in New Issue
Block a user