File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
src/main/java/com/afwsamples/testdpc/policy Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 99 // exactly 1 digit
1010 versionMinor = 0
1111 // exactly 2 digits
12- versionBuild = 00
12+ versionBuild = 01
1313}
1414
1515android {
Original file line number Diff line number Diff line change @@ -2527,8 +2527,11 @@ private void reloadSetAutoTimeRequiredUi() {
25272527
25282528 @ TargetApi (Util .R_VERSION_CODE )
25292529 private void reloadSetAutoTimeUi () {
2530- boolean isOrgOwned = Util .SDK_INT >= VERSION_CODES .R &&
2531- mDevicePolicyManager .isOrganizationOwnedDeviceWithManagedProfile ();
2530+ if (Util .SDK_INT < VERSION_CODES .R ) {
2531+ return ;
2532+ }
2533+ boolean isOrgOwned =
2534+ mDevicePolicyManager .isOrganizationOwnedDeviceWithManagedProfile ();
25322535
25332536 if (mDevicePolicyManager .isDeviceOwnerApp (mPackageName )
25342537 || (mDevicePolicyManager .isProfileOwnerApp (mPackageName )
@@ -2540,8 +2543,11 @@ private void reloadSetAutoTimeUi() {
25402543
25412544 @ TargetApi (Util .R_VERSION_CODE )
25422545 private void reloadSetAutoTimeZoneUi () {
2543- boolean isOrgOwned = Util .SDK_INT >= VERSION_CODES .R &&
2544- mDevicePolicyManager .isOrganizationOwnedDeviceWithManagedProfile ();
2546+ if (Util .SDK_INT < VERSION_CODES .R ) {
2547+ return ;
2548+ }
2549+ boolean isOrgOwned =
2550+ mDevicePolicyManager .isOrganizationOwnedDeviceWithManagedProfile ();
25452551
25462552 if (mDevicePolicyManager .isDeviceOwnerApp (mPackageName )
25472553 || (mDevicePolicyManager .isProfileOwnerApp (mPackageName )
You can’t perform that action at this time.
0 commit comments