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

Commit 7b1ad58e 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 on" am: 223c3710

am: 5102c731

Change-Id: I09ac8b21bb1fcebfaee216104b06d8e615142406
parents a265f61d 5102c731
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) {