Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd231dc0 authored by William Escande's avatar William Escande
Browse files

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
parent 3b9cb9a7
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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);