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

Commit 9775cd1b 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

Change-Id: I4441835b54935af71193c8f41a563d884932f988
parents 5e18b7ce 12d89a2e
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) {