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

Commit ea1490ad authored by Jenhou Huang's avatar Jenhou Huang Committed by Automerger Merge Worker
Browse files

Merge "Fix device ordering" into sc-v2-dev am: f746e466 am: 0d3426b4

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15982067

Change-Id: I54b5528d4e278f56235ccb4fc816c59e8e505add
parents 7850aa89 0d3426b4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -489,9 +489,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();