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

Commit f746e466 authored by Jenhou Huang's avatar Jenhou Huang Committed by Android (Google) Code Review
Browse files

Merge "Fix device ordering" into sc-v2-dev

parents 38b65a15 137acf73
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -479,9 +479,9 @@ public class LocalMediaManager implements BluetoothCallback {
        @Override
        public void onDeviceListAdded(List<MediaDevice> devices) {
            synchronized (mMediaDevicesLock) {
                Collections.sort(devices, COMPARATOR);
                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();