From fea3de19bfca91d1b0766ff26335f91f5863f01d Mon Sep 17 00:00:00 2001 From: satok Date: Mon, 21 Sep 2009 00:43:34 +0900 Subject: [PATCH] Always show combined inbox BUG: 2129902 --- .../android/email/activity/AccountFolderList.java | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/com/android/email/activity/AccountFolderList.java b/src/com/android/email/activity/AccountFolderList.java index 2d945eb0d..839911df8 100644 --- a/src/com/android/email/activity/AccountFolderList.java +++ b/src/com/android/email/activity/AccountFolderList.java @@ -294,15 +294,12 @@ public class AccountFolderList extends ListActivity RowBuilder row; // TYPE_INBOX count = getUnreadCountByMailboxType(this, Mailbox.TYPE_INBOX); - if (count > 0) { - row = childCursor.newRow(); - row.add(Long.valueOf(Mailbox.QUERY_ALL_INBOXES)); // MAILBOX_COLUMN_ID = 0; - row.add(getString(R.string.account_folder_list_summary_inbox)); // MAILBOX_DISPLAY_NAME - row.add(null); // MAILBOX_ACCOUNT_KEY = 2; - row.add(Integer.valueOf(Mailbox.TYPE_INBOX)); // MAILBOX_TYPE = 3; - // This value is 0 because count doesn't the number of messages in INBOX - row.add(Integer.valueOf(count)); // MAILBOX_UNREAD_COUNT = 4; - } + row = childCursor.newRow(); + row.add(Long.valueOf(Mailbox.QUERY_ALL_INBOXES)); // MAILBOX_COLUMN_ID = 0; + row.add(getString(R.string.account_folder_list_summary_inbox)); // MAILBOX_DISPLAY_NAME + row.add(null); // MAILBOX_ACCOUNT_KEY = 2; + row.add(Integer.valueOf(Mailbox.TYPE_INBOX)); // MAILBOX_TYPE = 3; + row.add(Integer.valueOf(count)); // MAILBOX_UNREAD_COUNT = 4; // TYPE_MAIL (FAVORITES) count = EmailContent.count(this, Message.CONTENT_URI, FAVORITE_COUNT_SELECTION, null); if (count > 0) {