Skip to content

Commit b2a8be5

Browse files
TreeHugger RobotAndroid (Google) Code Review
authored andcommitted
Merge "Fix the issue that P user restrictions preferences are disabled on P." into ub-testdpc-pic
2 parents dfc7031 + dfe62cb commit b2a8be5

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)