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

Commit cf3af9e9 authored by Hemant Gupta's avatar Hemant Gupta Committed by android-build-merger
Browse files

Merge "HID: Send Connection change broadcast to all users" am: 12d89a2e

am: 9775cd1b

Change-Id: Ieb08efd2de2248c936e683d4c7cdeb6c6a386c72
parents b3ae0b4a 9775cd1b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.os.UserHandle;
import android.provider.Settings;
import android.util.Log;

@@ -763,7 +764,7 @@ public class HidHostService extends ProfileService {
        intent.putExtra(BluetoothProfile.EXTRA_STATE, newState);
        intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device);
        intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
        sendBroadcast(intent, BLUETOOTH_PERM);
        sendBroadcastAsUser(intent, UserHandle.ALL, BLUETOOTH_PERM);
    }

    private void broadcastHandshake(BluetoothDevice device, int status) {