am 8a55972c: am 89966059: am 1a377f09: MessageCompose: corretly set initial mSourceMessageProcessed=true for the cases where there\'s no source message, to avoid duplicated email addresses on orientation change.

Merge commit '8a55972c5927e2df8d2261116e78acfdf455a6bc'

* commit '8a55972c5927e2df8d2261116e78acfdf455a6bc':
  MessageCompose: corretly set initial mSourceMessageProcessed=true for the cases where there's no source message, to avoid duplicated email addresses on orientation change.
This commit is contained in:
Mihai Preda 2009-10-13 17:01:27 -07:00 committed by Android Git Automerger
commit 6c8c940553

View File

@ -307,6 +307,7 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
initFromIntent(intent); initFromIntent(intent);
mDraftNeedsSaving = true; mDraftNeedsSaving = true;
mMessageLoaded = true; mMessageLoaded = true;
mSourceMessageProcessed = true;
} else { } else {
// Otherwise, handle the internal cases (Message Composer invoked from within app) // Otherwise, handle the internal cases (Message Composer invoked from within app)
long messageId = draftId != -1 ? draftId : intent.getLongExtra(EXTRA_MESSAGE_ID, -1); long messageId = draftId != -1 ? draftId : intent.getLongExtra(EXTRA_MESSAGE_ID, -1);
@ -317,6 +318,7 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
// Since this is a new message, we don't need to call LoadMessageTask. // Since this is a new message, we don't need to call LoadMessageTask.
// But we DO need to set mMessageLoaded to indicate the message can be sent // But we DO need to set mMessageLoaded to indicate the message can be sent
mMessageLoaded = true; mMessageLoaded = true;
mSourceMessageProcessed = true;
} }
} }