Make "mark unread" close current message

- XLFragmentManager.selectMailbox() used to hide the message view
  when it's visible, but not anymore.  Made goBackToMailbox() itself
  hide it instead.

- Also made onMarkAsUnread() not call the unread callback, which was
  already done in onMarkMessageAsRead().

Bug 3214538

Change-Id: I52fb8bb745cdaa517624a9aeec074122f10aac4a
This commit is contained in:
Makoto Onuki 2010-11-29 14:46:27 -08:00
parent af1179ca22
commit f3d43641c9
2 changed files with 1 additions and 2 deletions

View File

@ -360,7 +360,7 @@ class MessageListXLFragmentManager {
*/
public void goBackToMailbox() {
if (isMessageSelected()) {
selectMailbox(getMailboxId(), false);
mThreePane.showLeftPane(); // Show mailbox list
}
}

View File

@ -408,7 +408,6 @@ public class MessageViewFragment extends MessageViewFragmentBase {
private void onMarkAsUnread() {
onMarkMessageAsRead(false);
mCallback.onMessageSetUnread();
}
/**