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

Commit dd7a3f88 authored by rakesh reddy's avatar rakesh reddy Committed by Linux Build Service Account
Browse files

Bluetooth : Stop the ring when HS disconnects.

This change makes sure that Ring is stopped
when HF is disconnected.

Change-Id: I3e150089ad799133101f9466f5c7aa042a1e600e
CRs-Fixed: 748283
parent d463aad3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1988,6 +1988,9 @@ final class HeadsetClientStateMachine extends StateMachine {
        private void processConnectionEvent(int state, BluetoothDevice device) {
            switch (state) {
                case HeadsetClientHalConstants.CONNECTION_STATE_DISCONNECTED:
                    if (mRingtone != null && mRingtone.isPlaying()) {
                        mRingtone.stop();
                    }
                    Log.d(TAG, "Connected disconnects.");
                    // AG disconnects
                    if (mCurrentDevice.equals(device)) {