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

Commit ae53d881 authored by Ugo Yu's avatar Ugo Yu
Browse files

Fix onMetadataChanged listener failure

Bug: 126231748
Test: Manual
Change-Id: Id7d1e6d93f01088a923f34dd62251388e06cdf36
parent 3b8750fd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2712,7 +2712,7 @@ public class AdapterService extends Service {
     */
    @VisibleForTesting
    public void metadataChanged(String address, int key, String value) {
        BluetoothDevice device = mRemoteDevices.getDevice(address.getBytes());
        BluetoothDevice device = mRemoteDevices.getDevice(Utils.getBytesFromAddress(address));
        if (mMetadataListeners.containsKey(device)) {
            ArrayList<IBluetoothMetadataListener> list = mMetadataListeners.get(device);
            for (IBluetoothMetadataListener listener : list) {