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

Commit e940125e authored by Joseph Pirozzo's avatar Joseph Pirozzo Committed by android-build-merger
Browse files

Merge "Stop HfpClientConnectionService on shutdown." am: 20482be0 am: c58c68cf am: 608d6918

am: 8c2b7ec4

Change-Id: I154369b8365d7d2fcd6aad10cb0853aa4f43afff
parents 28274557 8c2b7ec4
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -116,6 +116,11 @@ public class HeadsetClientService extends ProfileService {
            Log.w(TAG, "stop() called without start()");
            return false;
        }

        // Stop the HfpClientConnectionService.
        Intent stopIntent = new Intent(this, HfpClientConnectionService.class);
        sHeadsetClientService.stopService(stopIntent);

        setHeadsetClientService(null);

        unregisterReceiver(mBroadcastReceiver);
@@ -128,11 +133,6 @@ public class HeadsetClientService extends ProfileService {
            it.remove();
        }

        // Stop the HfpClientConnectionService.
        Intent stopIntent = new Intent(this, HfpClientConnectionService.class);
        stopIntent.putExtra(HFP_CLIENT_STOP_TAG, true);
        startService(stopIntent);

        // Stop the handler thread
        mSmThread.quit();
        mSmThread = null;