MessageView: fix prev/next navigation in compound mailboxes.

Bug 2132262.

Change-Id: Ic3b8d9ccedc6101abb90dcac3545f87cbf233659
This commit is contained in:
Mihai Preda 2009-09-25 18:25:31 +02:00 committed by Marc Blank
parent c946f87839
commit 1086473056

View File

@ -546,7 +546,9 @@ public class MessageList extends ListActivity implements OnItemClickListener, On
if (mailbox.mType == EmailContent.Mailbox.TYPE_DRAFTS) {
MessageCompose.actionEditDraft(this, messageId);
} else {
MessageView.actionView(this, messageId, mailboxId);
// WARNING: here we pass mMailboxId, which can be the negative id of a compound
// mailbox, instead of the mailboxId of the particular message that is opened
MessageView.actionView(this, messageId, mMailboxId);
}
}