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

Commit 4f6a3a83 authored by Josh Wu's avatar Josh Wu
Browse files

Map: Check AdapterService before stop

Bug: 270114092
Test: atest BluetoothInstrumentationTests
Change-Id: Idcc45516b8ad1ad0a2b47f9171a7192bf013cdd4
parent 5b995782
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -339,9 +339,11 @@ public class MapClientService extends ProfileService {
            Log.d(TAG, "stop()");
        }

        if (mAdapterService != null) {
            mAdapterService.notifyActivityAttributionInfo(
                    getAttributionSource(),
                    AdapterService.ACTIVITY_ATTRIBUTION_NO_ACTIVE_DEVICE_ADDRESS);
        }
        if (mMapReceiver != null) {
            unregisterReceiver(mMapReceiver);
            mMapReceiver = null;