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

Commit 0cf41793 authored by Guojing Yuan's avatar Guojing Yuan
Browse files

[CDM] Fix an IAE in CDDS

Fix: 375619113
Test: CTS
Flag: EXEMPT bugfix
Change-Id: I8293b652dc6bc7a131f7e6af9800e08a81936ac5
parent 3c0c6fed
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -238,7 +238,12 @@ public class CompanionDeviceDiscoveryService extends Service {
            // Cancel discovery.
            mBtAdapter.cancelDiscovery();
            // Unregister receiver.
            try {
                unregisterReceiver(mBtReceiver);
            } catch (IllegalArgumentException e) {
                Slog.e(TAG, "Unable to unregister BT receiver. The receiver is already"
                        + " unregistered or was not previously registered.");
            }
            mBtReceiver = null;
        }