1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-05 17:15:05 -05:00

Opening a folder (especially in threaded mode) does a very heavy SQL query. This method doesn't use or modify the folder object. Don't cargo-cult the Open here.

(cketti may well tell me I'm wrong about this. Happy to listen & fix)
This commit is contained in:
Jesse Vincent 2013-07-11 16:11:36 -04:00
parent bcc2263e07
commit 876d478ad7

View File

@ -1521,10 +1521,6 @@ public class LocalStore extends Store implements Serializable {
@Override
public int getUnreadMessageCount() throws MessagingException {
if (!isOpen()) {
open(OpenMode.READ_WRITE);
}
try {
return database.execute(false, new DbCallback<Integer>() {
@Override