From 6d9d71683a067b7f2293b60f70dc60e151aa151b Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Tue, 17 May 2011 11:23:36 -0700 Subject: [PATCH] Workaround bug in DPM related to initialization of our admin Bug: 4436285 Change-Id: If6f0ccaa9e1479fae0dbd1853a462eaf7948ccfc --- src/com/android/email/SecurityPolicy.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/android/email/SecurityPolicy.java b/src/com/android/email/SecurityPolicy.java index f8c482683..695f18cfa 100644 --- a/src/com/android/email/SecurityPolicy.java +++ b/src/com/android/email/SecurityPolicy.java @@ -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; }