Method setBondState passes its parameter reason to mBondState.setBondState.

The bonding failure status was dropped by function setBondState.
Fix the problem by passing funtion parameter reason to mBondState.setBondState.
Bug 3162947

Change-Id: I515af34dd04000dfc6ab44453594082136869460
This commit is contained in:
Matthew Xie
2011-04-14 14:47:28 -07:00
parent c50232d517
commit 68f840a328

View File

@@ -1104,7 +1104,7 @@ public class BluetoothService extends IBluetooth.Stub {
}
/*package*/ synchronized boolean setBondState(String address, int state, int reason) {
mBondState.setBondState(address.toUpperCase(), state);
mBondState.setBondState(address.toUpperCase(), state, reason);
return true;
}