Merge pull request #3802 from k9mail/fix_mail_sync

Fix periodic mail sync
This commit is contained in:
cketti 2018-12-07 00:37:14 +01:00 committed by GitHub
commit 4a342435e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2442,7 +2442,7 @@ public class MessagingController {
}
final TracingWakeLock wakeLock = twakeLock;
for (MessagingListener l : getListeners()) {
for (MessagingListener l : getListeners(listener)) {
l.checkMailStarted(context, account);
}
putBackground("checkMail", listener, new Runnable() {
@ -2478,7 +2478,7 @@ public class MessagingController {
if (wakeLock != null) {
wakeLock.release();
}
for (MessagingListener l : getListeners()) {
for (MessagingListener l : getListeners(listener)) {
l.checkMailFinished(context, account);
}