am 555bd3c0: Don\'t show search folder

* commit '555bd3c0b7132509421ae181fbdb35995819787c':
  Don't show search folder
This commit is contained in:
Paul Westbrook 2013-06-06 13:03:18 -07:00 committed by Android Git Automerger
commit 6ab29bfed1

View File

@ -2350,6 +2350,7 @@ public class EmailProvider extends ContentProvider {
StringBuilder sb = genSelect(getFolderListMap(), uiProjection);
sb.append(" FROM " + Mailbox.TABLE_NAME + " WHERE " + MailboxColumns.ACCOUNT_KEY +
"=? AND " + MailboxColumns.TYPE + " < " + Mailbox.TYPE_NOT_EMAIL +
" AND " + MailboxColumns.TYPE + " != " + Mailbox.TYPE_SEARCH +
" AND " + MailboxColumns.PARENT_KEY + " < 0 ORDER BY ");
sb.append(MAILBOX_ORDER_BY);
return sb.toString();
@ -2371,6 +2372,7 @@ public class EmailProvider extends ContentProvider {
// Order by the derived column
sb.append(" FROM " + Mailbox.TABLE_NAME + " WHERE " + MailboxColumns.ACCOUNT_KEY +
"=? AND " + MailboxColumns.TYPE + " < " + Mailbox.TYPE_NOT_EMAIL +
" AND " + MailboxColumns.TYPE + " != " + Mailbox.TYPE_SEARCH +
" ORDER BY h_name");
return sb.toString();
}
@ -2385,6 +2387,7 @@ public class EmailProvider extends ContentProvider {
StringBuilder sb = genSelect(getFolderListMap(), uiProjection);
sb.append(" FROM " + Mailbox.TABLE_NAME + " WHERE " + MailboxColumns.ACCOUNT_KEY +
"=? AND " + MailboxColumns.TYPE + " < " + Mailbox.TYPE_NOT_EMAIL +
" AND " + MailboxColumns.TYPE + " != " + Mailbox.TYPE_SEARCH +
" AND " + MailboxColumns.PARENT_KEY + " < 0 AND " +
MailboxColumns.LAST_TOUCHED_TIME + " > 0 ORDER BY " +
MailboxColumns.LAST_TOUCHED_TIME + " DESC");