mirror of https://github.com/M66B/FairEmail.git
Small improvement
This commit is contained in:
parent
e0cbb50d6f
commit
7081acbb2b
|
@ -1871,7 +1871,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
@Override
|
||||
public void messagesAdded(MessageCountEvent e) {
|
||||
try {
|
||||
wlMessage.acquire(WAKELOCK_OPERATION_MAX);
|
||||
wlMessage.acquire(WAKELOCK_OPERATION_MAX * e.getMessages().length);
|
||||
fetch(folder, ifolder, e.getMessages(), false, false, "added");
|
||||
Thread.sleep(FETCH_YIELD_DURATION);
|
||||
} catch (Throwable ex) {
|
||||
|
@ -1889,7 +1889,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
@Override
|
||||
public void messagesRemoved(MessageCountEvent e) {
|
||||
try {
|
||||
wlMessage.acquire(WAKELOCK_OPERATION_MAX);
|
||||
wlMessage.acquire(WAKELOCK_OPERATION_MAX * e.getMessages().length);
|
||||
fetch(folder, ifolder, e.getMessages(), false, true, "removed");
|
||||
Thread.sleep(FETCH_YIELD_DURATION);
|
||||
} catch (Throwable ex) {
|
||||
|
|
Loading…
Reference in New Issue