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

Commit 6179965e authored by Jaikumar Ganesh's avatar Jaikumar Ganesh
Browse files

Send the UUID intent even if apps have not requested for it.

This will help apps listening to this intent to update icons etc
if the remote uuid changes. For example, the settings app used to
refresh the icons when the class bits change. It can do it now
when the remote ends uuids changes too.

Change-Id: Ib9af45780e83118d8877b0ef16f5b39b87fb4bef
parent 2092361d
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -1192,15 +1192,14 @@ public class BluetoothService extends IBluetooth.Stub {

    /* Broadcast the Uuid intent */
    /*package*/ synchronized void sendUuidIntent(String address) {
        if (mUuidIntentTracker.contains(address)) {
        ParcelUuid[] uuid = getUuidFromCache(address);
        Intent intent = new Intent(BluetoothDevice.ACTION_UUID);
        intent.putExtra(BluetoothDevice.EXTRA_UUID, uuid);
        mContext.sendBroadcast(intent, BLUETOOTH_ADMIN_PERM);

        if (mUuidIntentTracker.contains(address))
            mUuidIntentTracker.remove(address);
    }
    }

    @Override
    protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) {