MidiManager: fix double BTLE callback
Stop openBluetoothDevice() from calling its callback twice.
Bug: 23218338
Change-Id: I2e738b22a124c0336c46bef05680a82ee1f59e79
Signed-off-by: Phil Burk <philburk@google.com>
(cherry picked from commit 0ca998d79f)
This commit is contained in:
@@ -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()");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user