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

Commit a6689ddb authored by John Wang's avatar John Wang Committed by Android Git Automerger
Browse files

am 1ed7d65b: am fac4a689: Merge "Fix the audio mode glitch during hangup." into gingerbread

* commit '1ed7d65b':
  Fix the audio mode glitch during hangup.
parents 6ae68920 1ed7d65b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -380,7 +380,11 @@ public final class CallManager {
                break;
            case OFFHOOK:
                Phone fgPhone = getFgPhone();
                if (hasActiveFgCall() && !(fgPhone instanceof SipPhone)) {
                // Enable IN_CALL mode while foreground call is in DIALING,
                // ALERTING, ACTIVE and DISCONNECTING state and not from sipPhone
                if (getActiveFgCallState() != Call.State.IDLE
                        && getActiveFgCallState() != Call.State.DISCONNECTED
                        && !(fgPhone instanceof SipPhone)) {
                    mode = AudioManager.MODE_IN_CALL;
                }
                break;