Skip to content

Commit dfe62cb

Browse files
author
yuemingw
committed
Fix the issue that P user restrictions preferences are disabled on P.
Bug: 84039268 Test: manual Change-Id: I433484fc814ec90b1f43c8e97bf7bb522d7a7c81
1 parent 2881ead commit dfe62cb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/main/java/com/afwsamples/testdpc/policy/UserRestrictionsDisplayFragment.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ private void constrainPerferences() {
145145
}
146146
for (String restriction: UserRestriction.PIC_PLUS_RESTRICTIONS) {
147147
DpcPreferenceBase pref = (DpcPreferenceBase) findPreference(restriction);
148-
// TODO: Replace the following version code with P when ready
149-
pref.setMinSdkVersion(Build.VERSION_CODES.CUR_DEVELOPMENT);
148+
pref.setMinSdkVersion(Build.VERSION_CODES.P);
150149
}
151150
for (String restriction : UserRestriction.PRIMARY_USER_ONLY_RESTRICTIONS) {
152151
DpcPreferenceBase pref = (DpcPreferenceBase) findPreference(restriction);

0 commit comments

Comments
 (0)