Skip to content

Commit eb9f5e1

Browse files
jscott1989android-build-merger
authored andcommitted
Remove deprecated .isAtLeastP for makeUserEphemeralCheckBox and leaveAllSystemAppsEnabled
am: eb92610b66 Change-Id: I05007c2f8129e2eb6adc89decddcf126cb5bd94d
2 parents 767067a + c9e7e23 commit eb9f5e1

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)