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

Commit d154af9b authored by Sooraj Sasindran's avatar Sooraj Sasindran Committed by Automerger Merge Worker
Browse files

Merge "store preferential configs if no error from CS" am: f315172a

parents 397fa5b9 f315172a
Loading
Loading
Loading
Loading
+15 −9
Original line number Diff line number Diff line
@@ -12172,6 +12172,9 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
                "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());
@@ -12182,7 +12185,10 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
                    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