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

Commit 3728cd9b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Fix to update the incall state"

parents 2d43c160 db8910aa
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -56,6 +56,9 @@ final class PhoneStateBroadcaster extends CallsManagerListenerBase {
    public void onCallAdded(Call call) {
        if (call.getState() == CallState.RINGING) {
            sendPhoneStateChangedBroadcast(call, TelephonyManager.CALL_STATE_RINGING);
        } else if (call.getState() == CallState.PRE_DIAL_WAIT ||
                call.getState() == CallState.CONNECTING) {
            sendPhoneStateChangedBroadcast(call, TelephonyManager.CALL_STATE_OFFHOOK);
        }
    };