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

Commit f9345b37 authored by Ramjee Singh's avatar Ramjee Singh Committed by Gerrit - the friendly Code Review server
Browse files

policy-hal: Fix for alarm tone heard even after dismissing.

-For stopping the alarm tone played during in call,
handleIncallSonification must be called with second
parameter i.e. starting as false from setPhoneState
when the call is disconnected

-isInCall method retuns false,hence handleIncallSonification
is not getting called on disconnecting the call

Change-Id: Ia6398eb1b0a3cb117a16f9fd4cb3637f5ce17be8
parent 5ad1af18
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -501,7 +501,7 @@ void AudioPolicyManagerCustom::setPhoneState(audio_mode_t state)
    /// Opens: can these line be executed after the switch of volume curves???
    // if leaving call state, handle special case of active streams
    // pertaining to sonification strategy see handleIncallSonification()
    if (isInCall()) {
    if (isStateInCall(oldState)) {
        ALOGV("setPhoneState() in call state management: new state is %d", state);
        for (size_t j = 0; j < mOutputs.size(); j++) {
            audio_io_handle_t curOutput = mOutputs.keyAt(j);