1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-26 01:28:50 -05:00

Merge pull request #238 from maniac103/thread-unread

Show thread as unread if at least one of the messages of the thread is unread.
This commit is contained in:
cketti 2013-01-30 11:19:56 -08:00
commit c87878fb63

View File

@ -397,6 +397,8 @@ public class EmailProvider extends ContentProvider {
if (MessageColumns.ID.equals(columnName)) { if (MessageColumns.ID.equals(columnName)) {
query.append("u." + MessageColumns.ID + " AS " + MessageColumns.ID); query.append("u." + MessageColumns.ID + " AS " + MessageColumns.ID);
} else if (MessageColumns.READ.equals(columnName)) {
query.append("MIN(read) AS " + MessageColumns.READ);
} else if (MessageColumns.DATE.equals(columnName)) { } else if (MessageColumns.DATE.equals(columnName)) {
query.append("MAX(date) AS " + MessageColumns.DATE); query.append("MAX(date) AS " + MessageColumns.DATE);
} else if (SpecialColumns.THREAD_COUNT.equals(columnName)) { } else if (SpecialColumns.THREAD_COUNT.equals(columnName)) {