File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
app/src/main/java/com/afwsamples/testdpc/policy Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -2533,7 +2533,10 @@ private void reloadSetAutoTimeRequiredUi() {
2533
2533
2534
2534
@ TargetApi (Util .R_VERSION_CODE )
2535
2535
private void reloadSetAutoTimeUi () {
2536
- boolean isOrgOwned = Util .SDK_INT >= VERSION_CODES .R &&
2536
+ if (Util .SDK_INT < VERSION_CODES .R ) {
2537
+ return ;
2538
+ }
2539
+ boolean isOrgOwned =
2537
2540
mDevicePolicyManager .isOrganizationOwnedDeviceWithManagedProfile ();
2538
2541
2539
2542
if (mDevicePolicyManager .isDeviceOwnerApp (mPackageName )
@@ -2546,7 +2549,10 @@ private void reloadSetAutoTimeUi() {
2546
2549
2547
2550
@ TargetApi (Util .R_VERSION_CODE )
2548
2551
private void reloadSetAutoTimeZoneUi () {
2549
- boolean isOrgOwned = Util .SDK_INT >= VERSION_CODES .R &&
2552
+ if (Util .SDK_INT < VERSION_CODES .R ) {
2553
+ return ;
2554
+ }
2555
+ boolean isOrgOwned =
2550
2556
mDevicePolicyManager .isOrganizationOwnedDeviceWithManagedProfile ();
2551
2557
2552
2558
if (mDevicePolicyManager .isDeviceOwnerApp (mPackageName )
You can’t perform that action at this time.
0 commit comments