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.
2 parents 91a65b5 + f73fbf7 commit 9ca26e4Copy full SHA for 9ca26e4
policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java
@@ -582,7 +582,9 @@ private void addWidget(int appId) {
582
}
583
584
private void maybePopulateWidgets() {
585
- if (mLockPatternUtils.getDevicePolicyManager().getKeyguardWidgetsDisabled(null)
+ DevicePolicyManager dpm =
586
+ (DevicePolicyManager) mContext.getSystemService(Context.DEVICE_POLICY_SERVICE);
587
+ if (dpm != null && dpm.getKeyguardWidgetsDisabled(null)
588
!= DevicePolicyManager.KEYGUARD_DISABLE_WIDGETS_NONE) {
589
Log.v(TAG, "Keyguard widgets disabled because of device policy admin");
590
return;
0 commit comments