diff --git a/src/com/android/email/service/EmailServiceUtils.java b/src/com/android/email/service/EmailServiceUtils.java index a2cda8d50..3532689c4 100644 --- a/src/com/android/email/service/EmailServiceUtils.java +++ b/src/com/android/email/service/EmailServiceUtils.java @@ -543,6 +543,12 @@ public class EmailServiceUtils { } final ImmutableMap.Builder builder = ImmutableMap.builder(); + if (!context.getResources().getBoolean(R.bool.enable_services)) { + // Return an empty map if services have been disabled because this is the Email + // Tombstone app. + sServiceMap = builder.build(); + return sServiceMap; + } try { final Resources res = context.getResources();