We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92abd19 commit f5fc4deCopy full SHA for f5fc4de
app/src/main/java/com/afwsamples/testdpc/provision/PostProvisioningTask.java
@@ -73,7 +73,8 @@ public class PostProvisioningTask {
73
74
public PostProvisioningTask(Context context) {
75
mContext = context;
76
- mDevicePolicyManager = context.getSystemService(DevicePolicyManager.class);
+ mDevicePolicyManager =
77
+ (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE);
78
mSharedPrefs = context.getSharedPreferences(POST_PROV_PREFS, Context.MODE_PRIVATE);
79
}
80
0 commit comments