Prevent CME w/ sServiceList

Bug: 6854037
Change-Id: I0b9aadfa0b347c62bf8a3b0c5ec88330871cce2d
This commit is contained in:
Marc Blank 2012-07-20 10:51:33 -07:00
parent 00287c4d8f
commit 54b6b8b072

View File

@ -191,10 +191,12 @@ public class EmailServiceUtils {
}
public static List<EmailServiceInfo> getServiceInfoList(Context context) {
if (sServiceList.isEmpty()) {
findServices(context);
synchronized(sServiceList) {
if (sServiceList.isEmpty()) {
findServices(context);
}
return sServiceList;
}
return sServiceList;
}
/**