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

Commit 0d3426b4 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

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

Change-Id: Iee81abe5eaeae22c24b0d238793a572a0e5c2b23
parents 35c93e8d f746e466
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();