From cd231dc04735f0713a990c30eb2896be93bc3446 Mon Sep 17 00:00:00 2001 From: William Escande Date: Mon, 5 Dec 2022 15:30:51 -0800 Subject: [PATCH] Update log for BluetoothPairingService ACTION_PAIRING_CANCEL does not contain an EXTRA_BOND_STATE Test: Log change is no-op Bug: 253775131 Change-Id: Ida67374e9369991d7e016b38df9c17a8fa5418cc --- .../settings/bluetooth/BluetoothPairingService.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/com/android/settings/bluetooth/BluetoothPairingService.java b/src/com/android/settings/bluetooth/BluetoothPairingService.java index 9883e617392..d8487e4d585 100644 --- a/src/com/android/settings/bluetooth/BluetoothPairingService.java +++ b/src/com/android/settings/bluetooth/BluetoothPairingService.java @@ -99,11 +99,8 @@ public final class BluetoothPairingService extends Service { Log.d(TAG, "Notification cancel " + " (" + mDevice.getName() + ")"); mDevice.cancelBondProcess(); - } else { - int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE, - BluetoothDevice.ERROR); - Log.d(TAG, "Dismiss pairing for " + " (" + - mDevice.getName() + "), BondState: " + bondState); + } else { // BluetoothDevice.ACTION_PAIRING_CANCEL + Log.d(TAG, "Dismiss pairing for " + " (" + mDevice.getName() + ")"); } mNm.cancel(NOTIFICATION_ID);