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

Commit bd8d0332 authored by phweiss's avatar phweiss
Browse files

Skip empty bluetooth-page in QS when bluetooth is disallowed

If DISALLOW_BLUETOOTH is set, tapping bluetooth in QS used to
open the empty device-selection screen with an untoggable switch.
Now, it directly brings you to the settings page with policy
transparency, mirroring the behaviour of DISALLOW_CONFIG_BLUETOOTH.

Bug: 32895313
Test: manual

Change-Id: I77230532428a4dd2a7769aa73dcc195c51312c36
parent f1a04f3f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -75,6 +75,8 @@ public class BluetoothControllerImpl implements BluetoothController, BluetoothCa
    @Override
    public boolean canConfigBluetooth() {
        return !mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_BLUETOOTH,
                UserHandle.of(mCurrentUser))
            && !mUserManager.hasUserRestriction(UserManager.DISALLOW_BLUETOOTH,
                UserHandle.of(mCurrentUser));
    }