From 1086473056eaaa8f473af632fb6d701c8376e132 Mon Sep 17 00:00:00 2001 From: Mihai Preda Date: Fri, 25 Sep 2009 18:25:31 +0200 Subject: [PATCH] MessageView: fix prev/next navigation in compound mailboxes. Bug 2132262. Change-Id: Ic3b8d9ccedc6101abb90dcac3545f87cbf233659 --- src/com/android/email/activity/MessageList.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/android/email/activity/MessageList.java b/src/com/android/email/activity/MessageList.java index daa9e0105..b2d70863c 100644 --- a/src/com/android/email/activity/MessageList.java +++ b/src/com/android/email/activity/MessageList.java @@ -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); } }