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

Commit f8684416 authored by Josh Wu's avatar Josh Wu Committed by Cherrypicker Worker
Browse files

Map: Check AdapterService before stop

Bug: 270114092
Test: atest BluetoothInstrumentationTests
Change-Id: Idcc45516b8ad1ad0a2b47f9171a7192bf013cdd4
(cherry picked from https://android-review.googlesource.com/q/commit:4f6a3a832324331ed72b059392f8b290657f77c2)
Merged-In: Idcc45516b8ad1ad0a2b47f9171a7192bf013cdd4
Bug: 263323082
parent b015842d
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;