Merge pull request #3802 from k9mail/fix_mail_sync
Fix periodic mail sync
This commit is contained in:
commit
4a342435e3
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue