From 88b502c70a273d161f4d46c72dc79298703514f1 Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Tue, 8 Mar 2011 16:44:08 -0800 Subject: [PATCH] Make sure services are started when Email application starts Bug: 4020337 Change-Id: I6c645800c75a4f1b80c5c3d081c4292b6db81f57 --- src/com/android/email/Email.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/android/email/Email.java b/src/com/android/email/Email.java index c857ed2f8..679ef7ce1 100644 --- a/src/com/android/email/Email.java +++ b/src/com/android/email/Email.java @@ -210,6 +210,10 @@ public class Email extends Application { // Get a helper string used deep inside message decoders (which don't have context) sMessageDecodeErrorString = getString(R.string.message_decode_error); + + // Make sure all required services are running when the app is started (can prevent + // issues after an adb sync/install) + setServicesEnabledAsync(this); } /**