From afa038c07444fc16c2e77157195945162a9cc83e Mon Sep 17 00:00:00 2001 From: Phil Burk Date: Fri, 21 Aug 2015 15:22:35 -0700 Subject: MidiManager: fix double BTLE callback Stop openBluetoothDevice() from calling its callback twice. Bug: 23218338 Change-Id: I2e738b22a124c0336c46bef05680a82ee1f59e79 Signed-off-by: Phil Burk (cherry picked from commit 0ca998d79fe95ded26ec4ff0a1e0a8dc4802684b) --- media/java/android/media/midi/MidiManager.java | 1 - 1 file changed, 1 deletion(-) (limited to 'media') diff --git a/media/java/android/media/midi/MidiManager.java b/media/java/android/media/midi/MidiManager.java index 7197dc0..e72bdb4 100644 --- a/media/java/android/media/midi/MidiManager.java +++ b/media/java/android/media/midi/MidiManager.java @@ -288,7 +288,6 @@ public final class MidiManager { // fetch MidiDeviceInfo from the server MidiDeviceInfo deviceInfo = server.getDeviceInfo(); device = new MidiDevice(deviceInfo, server, mService, mToken, deviceToken); - sendOpenDeviceResponse(device, listenerF, handlerF); } catch (RemoteException e) { Log.e(TAG, "remote exception in getDeviceInfo()"); } -- cgit v1.1