Bug 1229697 - Cancel bond when user inputs empty pincode for pairing, r=shuang

This commit is contained in:
Ben Tian 2016-01-11 16:47:20 +08:00
parent 6da171450a
commit 5e2ce42994

View File

@ -1288,7 +1288,7 @@ BluetoothServiceBluedroid::PinReplyInternal(
ENSURE_BLUETOOTH_IS_ENABLED_VOID(aRunnable);
if (aAccept) {
if (aAccept && aPinCode.mLength) {
sBtCoreInterface->PinReply(aDeviceAddress, aAccept, aPinCode,
new PinReplyResultHandler(aRunnable));
} else {