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

Commit bf80a14d authored by Stephen Chen's avatar Stephen Chen
Browse files

Do not disable Open Network Notifications setting on profile change.

The DISALLOW_CONFIG_WIFI user restriction will be enforced in the
feature implementation instead.

Bug: 35996959
Test: runtest --path
frameworks/base/services/tests/servicestests/src/com/android/server/pm/UserRestrictionsUtilsTest.java

Change-Id: Iabde4f974d26ab264e9544018d6547b4147f81aa
parent 48a58bae
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -414,13 +414,6 @@ public class UserRestrictionsUtils {
        final long id = Binder.clearCallingIdentity();
        try {
            switch (key) {
                case UserManager.DISALLOW_CONFIG_WIFI:
                    if (newValue) {
                        android.provider.Settings.Secure.putIntForUser(cr,
                                android.provider.Settings.Global
                                        .WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON, 0, userId);
                    }
                    break;
                case UserManager.DISALLOW_DATA_ROAMING:
                    if (newValue) {
                        // DISALLOW_DATA_ROAMING user restriction is set.