am db603bb5: am 3b68548d: am 75b6a6b9: Merge "Fix 2737842: Disable KeguardManager API if device policy is enabled" into froyo
This commit is contained in:
@@ -447,6 +447,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
|
||||
out.endDocument();
|
||||
stream.close();
|
||||
journal.commit();
|
||||
sendChangedNotification();
|
||||
} catch (IOException e) {
|
||||
try {
|
||||
if (stream != null) {
|
||||
@@ -459,6 +460,12 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
|
||||
}
|
||||
}
|
||||
|
||||
private void sendChangedNotification() {
|
||||
Intent intent = new Intent(DevicePolicyManager.ACTION_DEVICE_POLICY_MANAGER_STATE_CHANGED);
|
||||
intent.setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
|
||||
mContext.sendBroadcast(intent);
|
||||
}
|
||||
|
||||
private void loadSettingsLocked() {
|
||||
JournaledFile journal = makeJournaledFile();
|
||||
FileInputStream stream = null;
|
||||
|
||||
Reference in New Issue
Block a user