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

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

HeadsetService: Notify device changed at stop

Notify the active device changed to null when the HeadsetService stops.

Bug: 328847267
Fix: 328847267
Flag: Exempt shutdown cleanup
Test: None
Change-Id: Ia6ceee3b715f594bb057bac179cff61dcbd1231b
parent a2f57a6b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -240,7 +240,10 @@ public class HeadsetService extends ProfileService {
        unregisterReceiver(mHeadsetReceiver);
        synchronized (mStateMachines) {
            // Reset active device to null
            if (mActiveDevice != null) {
                mActiveDevice = null;
                broadcastActiveDevice(null);
            }
            mInbandRingingRuntimeDisable = false;
            mForceScoAudio = false;
            mAudioRouteAllowed = true;