Fix profiles broken by ag/1751147

Change-Id: Ifa92819df8e63355a3979ea0f1a20a0363b6cd45
This commit is contained in:
Ivan Podogov
2016-12-30 14:35:09 +00:00
committed by Marie Janssen
parent c816141bce
commit 5297dba712

View File

@@ -1907,6 +1907,9 @@ public final class BluetoothAdapter {
} else if (profile == BluetoothProfile.MAP_CLIENT) {
BluetoothMapClient mapClient = new BluetoothMapClient(context, listener);
return true;
} else if (profile == BluetoothProfile.INPUT_HOST) {
BluetoothInputHost iHost = new BluetoothInputHost(context, listener);
return true;
} else {
return false;
}
@@ -1983,6 +1986,10 @@ public final class BluetoothAdapter {
BluetoothMapClient mapClient = (BluetoothMapClient)proxy;
mapClient.close();
break;
case BluetoothProfile.INPUT_HOST:
BluetoothInputHost iHost = (BluetoothInputHost) proxy;
iHost.close();
break;
}
}