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

Commit c73a0b4b authored by Alexandru-Andrei Rotaru's avatar Alexandru-Andrei Rotaru Committed by android-build-merger
Browse files

Merge "Allow disabling of Bluetooth tethering if DISALLOW_CONFIG_TETHERING in...

Merge "Allow disabling of Bluetooth tethering if DISALLOW_CONFIG_TETHERING in on" am: 223c3710 am: 5102c731
am: 7b1ad58e

Change-Id: Idfc28fd40571fd7a10d238a50ab2bfa9c990e259
parents d029564d 7b1ad58e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -339,7 +339,7 @@ public class PanService extends ProfileService {
        }

        UserManager um = (UserManager) getSystemService(Context.USER_SERVICE);
        if (um.hasUserRestriction(UserManager.DISALLOW_CONFIG_TETHERING)) {
        if (um.hasUserRestriction(UserManager.DISALLOW_CONFIG_TETHERING) && value) {
            throw new SecurityException("DISALLOW_CONFIG_TETHERING is enabled for this user.");
        }
        if(mTetherOn != value) {