From 7688911b9f08d239245e4e2c8f6153894fce9671 Mon Sep 17 00:00:00 2001 From: Phil Burk Date: Fri, 21 Aug 2015 15:39:10 -0700 Subject: MidiBluetoothService: add new device to HashMap The HashMap is being used but devices never added to the map. Bug: 23429459 Change-Id: I1da5305a56f5bd48e1c5d9345e721ea8dd2eed4e Signed-off-by: Phil Burk (cherry picked from commit e5f722e55c5708c2b48b8c9688c135e451225032) --- .../src/com/android/bluetoothmidiservice/BluetoothMidiService.java | 1 + 1 file changed, 1 insertion(+) (limited to 'media') diff --git a/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/BluetoothMidiService.java b/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/BluetoothMidiService.java index fbde2b4..1f81a05 100644 --- a/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/BluetoothMidiService.java +++ b/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/BluetoothMidiService.java @@ -46,6 +46,7 @@ public class BluetoothMidiService extends Service { device = mDeviceServerMap.get(bluetoothDevice); if (device == null) { device = new BluetoothMidiDevice(this, bluetoothDevice, this); + mDeviceServerMap.put(bluetoothDevice, device); } } return device.getBinder(); -- cgit v1.1