am dc952e5d: am 7ef66423: b/17209397. NOOP getServiceMap() if we are in the tombstone app. automerge: 0397e7f

* commit 'dc952e5d93c8186de382af1c1912c7bfe04d091d':
  b/17209397. NOOP getServiceMap() if we are in the tombstone app.
This commit is contained in:
Anthony Lee 2014-11-02 17:36:56 +00:00 committed by Android Git Automerger
commit fb120f7c26

View File

@ -543,6 +543,12 @@ public class EmailServiceUtils {
} }
final ImmutableMap.Builder<String, EmailServiceInfo> builder = ImmutableMap.builder(); final ImmutableMap.Builder<String, EmailServiceInfo> 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 { try {
final Resources res = context.getResources(); final Resources res = context.getResources();