Fix profiles broken by ag/1751147 am: 5297dba712
am: 72d9008700
Change-Id: Ic4760a5c931bf6b8340e9ebc96b08fec938d2421
This commit is contained in:
@@ -1907,6 +1907,9 @@ public final class BluetoothAdapter {
|
|||||||
} else if (profile == BluetoothProfile.MAP_CLIENT) {
|
} else if (profile == BluetoothProfile.MAP_CLIENT) {
|
||||||
BluetoothMapClient mapClient = new BluetoothMapClient(context, listener);
|
BluetoothMapClient mapClient = new BluetoothMapClient(context, listener);
|
||||||
return true;
|
return true;
|
||||||
|
} else if (profile == BluetoothProfile.INPUT_HOST) {
|
||||||
|
BluetoothInputHost iHost = new BluetoothInputHost(context, listener);
|
||||||
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -1983,6 +1986,10 @@ public final class BluetoothAdapter {
|
|||||||
BluetoothMapClient mapClient = (BluetoothMapClient)proxy;
|
BluetoothMapClient mapClient = (BluetoothMapClient)proxy;
|
||||||
mapClient.close();
|
mapClient.close();
|
||||||
break;
|
break;
|
||||||
|
case BluetoothProfile.INPUT_HOST:
|
||||||
|
BluetoothInputHost iHost = (BluetoothInputHost) proxy;
|
||||||
|
iHost.close();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user