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

Commit d4a92b69 authored by tim peng's avatar tim peng Committed by Android (Google) Code Review
Browse files

Merge "[Fix] Bluetooth device ordering" into sc-dev

parents eef75a48 a4cf89aa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -205,7 +205,6 @@ public class LocalMediaManager implements BluetoothCallback {

    void dispatchDeviceListUpdate() {
        final List<MediaDevice> mediaDevices = new ArrayList<>(mMediaDevices);
        Collections.sort(mediaDevices, COMPARATOR);
        for (DeviceCallback callback : getCallbacks()) {
            callback.onDeviceListUpdate(mediaDevices);
        }
@@ -472,6 +471,7 @@ public class LocalMediaManager implements BluetoothCallback {
            synchronized (mMediaDevicesLock) {
                mMediaDevices.clear();
                mMediaDevices.addAll(devices);
                Collections.sort(devices, COMPARATOR);
                // Add disconnected bluetooth devices only when phone output device is available.
                for (MediaDevice device : devices) {
                    final int type = device.getDeviceType();