Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29cf40a9 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "store preferential configs if no error from CS" into udc-qpr-dev

parents 463e0cb6 f27fc6ca
Loading
Loading
Loading
Loading
+15 −9
Original line number Diff line number Diff line
@@ -14837,6 +14837,9 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
                "Caller is not managed profile owner or device owner;"
                        + " only managed profile owner or device owner may control the preferential"
                        + " network service");
        try {
            updateNetworkPreferenceForUser(caller.getUserId(), preferentialNetworkServiceConfigs);
            synchronized (getLockObject()) {
                final ActiveAdmin requiredAdmin = getDeviceOrProfileOwnerAdminLocked(
                        caller.getUserId());
@@ -14847,7 +14850,10 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
                    saveSettingsLocked(caller.getUserId());
                }
            }
        updateNetworkPreferenceForUser(caller.getUserId(), preferentialNetworkServiceConfigs);
        } catch (Exception e) {
            Slogf.e(LOG_TAG, "Failed to set preferential network service configs");
            throw e;
        }
        DevicePolicyEventLogger
                .createEvent(DevicePolicyEnums.SET_PREFERENTIAL_NETWORK_SERVICE_ENABLED)
                .setBoolean(preferentialNetworkServiceConfigs