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:
parent
c1ab586ecc
commit
04ad291ba2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user