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

Commit bc587c4d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix bluetooth pairing notification could not be removed" into sc-dev

parents 072bf553 b2af6ce1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -134,7 +134,8 @@ public final class BluetoothPairingService extends Service {
        mDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);

        if (mDevice != null && mDevice.getBondState() != BluetoothDevice.BOND_BONDING) {
            Log.w(TAG, "Device " + mDevice + " not bonding: " + mDevice.getBondState());
            Log.w(TAG, "Device " + mDevice.getName() + " not bonding: " + mDevice.getBondState());
            mNm.cancel(NOTIFICATION_ID);
            stopSelf();
            return START_NOT_STICKY;
        }