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

Commit 3020b31a authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Clean hidden api - hasUserRestriction"

parents 2c4533dc 205e26a5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2342,7 +2342,8 @@ public class AdapterService extends Service {

    public synchronized boolean enable(boolean quietMode) {
        // Enforce the user restriction for disallowing Bluetooth if it was set.
        if (mUserManager.hasUserRestriction(UserManager.DISALLOW_BLUETOOTH, UserHandle.SYSTEM)) {
        if (mUserManager.hasUserRestrictionForUser(UserManager.DISALLOW_BLUETOOTH,
                    UserHandle.SYSTEM)) {
            debugLog("enable() called when Bluetooth was disallowed");
            return false;
        }