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

Commit c7da718c authored by Robert Wu's avatar Robert Wu Committed by Automerger Merge Worker
Browse files

Merge "MIDI: don't create two of the same device" into tm-dev am: 85b0f4f1

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

Change-Id: Ifc09db966ce306d061df1eedb28d8d95383e14ba
parents db9dad2c 85b0f4f1
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -768,7 +768,6 @@ public class MidiService extends IMidiManager.Stub {
        synchronized (mDevicesByInfo) {
            for (Device device : mDevicesByInfo.values()) {
                if (device.isUidAllowed(uid)) {
                    deviceInfos.add(device.getDeviceInfo());
                    // UMP devices have protocols that are not PROTOCOL_UNKNOWN
                    if (transport == MidiManager.TRANSPORT_UNIVERSAL_MIDI_PACKETS) {
                        if (device.getDeviceInfo().getDefaultProtocol()