am c1d56928: Add a limit to the Conversation query

* commit 'c1d56928b2185e6a2643eea271a1fbd50e425ca2':
  Add a limit to the Conversation query
This commit is contained in:
Paul Westbrook 2013-06-06 10:30:18 -07:00 committed by Android Git Automerger
commit 569038380d

View File

@ -2272,7 +2272,8 @@ public class EmailProvider extends ContentProvider {
if (unseenOnly) {
sb.append("AND ").append(MessageColumns.FLAG_SEEN).append(" = 0 ");
}
sb.append("ORDER BY " + MessageColumns.TIMESTAMP + " DESC");
sb.append("ORDER BY " + MessageColumns.TIMESTAMP + " DESC ");
sb.append("LIMIT " + UIProvider.CONVERSATION_PROJECTION_QUERY_CURSOR_WINDOW_LIMT);
return sb.toString();
}