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

Commit 0636f791 authored by ajay kumar's avatar ajay kumar Committed by Ajay Kumar
Browse files

Bluetooth: Change userhandle to current from ALL

Change to a user handle to indicate the current
user of the device instead of ALL to avoid the
force close error in bluetooth.

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