Merge "Workaround bug in DPM related to initialization of our admin"

This commit is contained in:
Marc Blank 2011-05-17 14:13:59 -07:00 committed by Android (Google) Code Review
commit a30316d0df

View File

@ -65,6 +65,9 @@ public class SecurityPolicy {
public synchronized static SecurityPolicy getInstance(Context context) {
if (sInstance == null) {
sInstance = new SecurityPolicy(context.getApplicationContext());
// STOPSHIP: This is a workaround for b/4445007
// Make sure the DPM has our active policies
sInstance.setActivePolicies();
}
return sInstance;
}