Workaround bug in DPM related to initialization of our admin

Bug: 4436285

Change-Id: If6f0ccaa9e1479fae0dbd1853a462eaf7948ccfc
This commit is contained in:
Marc Blank 2011-05-17 11:23:36 -07:00
parent 4c4e4c3515
commit 6d9d71683a

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;
}