MIDI: don't create two of the same device
Devices got created twice because I forgot to remove a debugging statement Bug: 220168245 Test: MidiKeyboard and MidiScope Change-Id: I2bd7b28bec3025e62dce39fcd500350a9ca6de8d
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user