1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-14 13:35:04 -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 c1ab586ecc
commit 04ad291ba2

View File

@ -1530,10 +1530,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