Skip to content

Commit c9e7e23

Browse files
committed
Remove deprecated .isAtLeastP for makeUserEphemeralCheckBox and leaveAllSystemAppsEnabled
Change-Id: I587c46f906cab3b1d80516ca74fc70fd1c955c04 Fix: 111589939 Test: Manually tested on O and P
1 parent 767067a commit c9e7e23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1712,7 +1712,7 @@ private void showCreateAndManageUserPrompt() {
17121712
R.id.make_user_ephemeral_checkbox);
17131713
final CheckBox leaveAllSystemAppsEnabled = (CheckBox) dialogView.findViewById(
17141714
R.id.leave_all_system_apps_enabled_checkbox);
1715-
if (!BuildCompat.isAtLeastP()) {
1715+
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P) {
17161716
makeUserEphemeralCheckBox.setEnabled(false);
17171717
leaveAllSystemAppsEnabled.setEnabled(false);
17181718
}

0 commit comments

Comments
 (0)