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

Commit 017b1b7f authored by Steve Kondik's avatar Steve Kondik
Browse files

Revert "Bluetooth: Change userhandle to current from ALL"

 * Fixes death spiral when switching users.

This reverts commit fbc6c352.

Change-Id: Ie944f965f4a128d539668e4e288fbac7246a8f9d
parent fbae4d91
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1295,7 +1295,7 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
            intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
            intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
            intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
            intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
            if (DBG) Log.d(TAG,"Bluetooth State Change Intent: " + prevState + " -> " + newState);
            if (DBG) Log.d(TAG,"Bluetooth State Change Intent: " + prevState + " -> " + newState);
            mContext.sendBroadcastAsUser(intent, UserHandle.CURRENT,
            mContext.sendBroadcastAsUser(intent, UserHandle.ALL,
                    BLUETOOTH_PERM);
                    BLUETOOTH_PERM);
        }
        }
    }
    }