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
diff --git a/src/com/android/settings/bluetooth/BluetoothPairingService.java b/src/com/android/settings/bluetooth/BluetoothPairingService.java
index 9883e61..d8487e4 100644
--- a/src/com/android/settings/bluetooth/BluetoothPairingService.java
+++ b/src/com/android/settings/bluetooth/BluetoothPairingService.java
@@ -99,11 +99,8 @@
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);