Merge "Fix device ordering" into sc-v2-dev am: f746e466dc am: 0d3426b4d0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15982067 Change-Id: I54b5528d4e278f56235ccb4fc816c59e8e505add
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user