Skip to content

Commit bb6b852

Browse files
jscott1989pfmaggi
authored andcommitted
No public description
PiperOrigin-RevId: 604301263
1 parent b0957cc commit bb6b852

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/main/java/com/afwsamples/testdpc/policy/keyguard/LockScreenPolicyFragment.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ abstract static class Keys {
7575
static final String KEYGUARD_DISABLE_SECURE_NOTIFICATIONS =
7676
"keyguard_disable_secure_notifications";
7777
static final String KEYGUARD_DISABLE_SHORTCTUS = "keyguard_disable_shortcuts";
78+
static final String KEYGUARD_DISABLE_WIDGETS_ALL = "keyguard_disable_widgets_all";
7879
static final String KEYGUARD_DISABLE_TRUST_AGENTS = "keyguard_disable_trust_agents";
7980
static final String KEYGUARD_DISABLE_UNREDACTED_NOTIFICATIONS =
8081
"keyguard_disable_unredacted_notifications";
@@ -117,6 +118,9 @@ abstract static class Keys {
117118

118119
KEYGUARD_FEATURES.put(
119120
Keys.KEYGUARD_DISABLE_SHORTCTUS, DevicePolicyManager.KEYGUARD_DISABLE_SHORTCUTS_ALL);
121+
122+
KEYGUARD_FEATURES.put(
123+
Keys.KEYGUARD_DISABLE_WIDGETS_ALL, DevicePolicyManager.KEYGUARD_DISABLE_WIDGETS_ALL);
120124
}
121125

122126
@Override

src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,7 @@
944944
<string name="keyguard_disable_fingerprint">Disable fingerprint</string>
945945
<string name="keyguard_disable_remote_input">Disable text entry in secure keyguard screen</string>
946946
<string name="keyguard_disable_shortcuts">Disable shortcuts</string>
947+
<string name="keyguard_disable_widgets_all">Disable widgets</string>
947948
<string name="cannot_disable_shortcuts_on_work_profile">Can\'t disable shortcuts on work profile. Please switch to personal profile tab.</string>
948949

949950
<!-- Trust agent features -->

src/main/res/xml/lock_screen_preferences.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@
104104
android:key="keyguard_disable_shortcuts"
105105
android:title="@string/keyguard_disable_shortcuts"
106106
testdpc:minSdkVersion="U" />
107+
<com.afwsamples.testdpc.common.preference.DpcSwitchPreference
108+
android:key="keyguard_disable_widgets_all"
109+
android:title="@string/keyguard_disable_widgets_all"
110+
testdpc:minSdkVersion="L" />
107111
</PreferenceCategory>
108112

109113
<PreferenceCategory android:title="@string/trust_agent_features">

0 commit comments

Comments
 (0)