From fa829ea9ff8042d6ddeca15078ee662c1f244424 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Thu, 6 Nov 2008 06:55:41 +0000 Subject: [PATCH] * Fix for Issue 65 - Intermittent failure of K-9 to background sync. * Based on a patch provided by baolongnt++ http://code.google.com/p/k9mail/issues/detail?id=65#c10 --- src/com/fsck/k9/k9.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/com/fsck/k9/k9.java b/src/com/fsck/k9/k9.java index 9d745d21b..12f6e02b4 100644 --- a/src/com/fsck/k9/k9.java +++ b/src/com/fsck/k9/k9.java @@ -156,6 +156,13 @@ public class k9 extends Application { * doesn't work in Android and MimeMessage does not have access to a Context. */ BinaryTempFileBody.setTempDirectory(getCacheDir()); + + /* + * Enable background sync of messages + */ + + setServicesEnabled(this); + } }