From 68f840a32845b86ff7f23eefbc1ce930c8e36c6a Mon Sep 17 00:00:00 2001 From: Matthew Xie Date: Thu, 14 Apr 2011 14:47:28 -0700 Subject: [PATCH] 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 --- core/java/android/server/BluetoothService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/server/BluetoothService.java b/core/java/android/server/BluetoothService.java index f98d27518fea8..b3cbf50cd5e21 100644 --- a/core/java/android/server/BluetoothService.java +++ b/core/java/android/server/BluetoothService.java @@ -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; }