Merge "Prevent empty notifications from appearing"

This commit is contained in:
Marc Blank 2012-04-05 13:55:49 -07:00 committed by Android (Google) Code Review
commit 0d3f91560a

View File

@ -1926,7 +1926,7 @@ outer:
"WHERE Boxes." + MailboxColumns.ID + '=' + Message.TABLE_NAME + "." + "WHERE Boxes." + MailboxColumns.ID + '=' + Message.TABLE_NAME + "." +
MessageColumns.MAILBOX_KEY + " AND " + Message.TABLE_NAME + "." + MessageColumns.MAILBOX_KEY + " AND " + Message.TABLE_NAME + "." +
MessageColumns.ID + ">Boxes." + MailboxColumns.LAST_NOTIFIED_MESSAGE_KEY + MessageColumns.ID + ">Boxes." + MailboxColumns.LAST_NOTIFIED_MESSAGE_KEY +
" AND " + MessageColumns.FLAG_READ + "=0"; " AND " + MessageColumns.FLAG_READ + "=0 AND " + MessageColumns.TIMESTAMP + "!=0";
public Cursor notificationQuery(Uri uri) { public Cursor notificationQuery(Uri uri) {
SQLiteDatabase db = getDatabase(getContext()); SQLiteDatabase db = getDatabase(getContext());