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

Commit e672c658 authored by Andrew Lee's avatar Andrew Lee
Browse files

In SipPhoneBase, do not notify call state changes.

For Telephony phones, we'd like to notify call state changes in this
scenario, but for SIP calls we aren't concerned with this.

Tested: Added a custom listener to confirm that onCallStateChanged
previously was triggered on PhoneStateListener for specific subIds
and SIP calls. After this change, the callback is no longer invoked
for SIP calls, but still is for specific subIds.

Bug: 17612140
Change-Id: I9e4c6282fd53135580203c0b222782c23add5c42
parent a097459c
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -161,11 +161,10 @@ abstract class SipPhoneBase extends PhoneBase {
    }

    /**
     * Notify any interested party of a Phone state change
     * {@link com.android.internal.telephony.PhoneConstants.State}
     * SIP phones do not have a subscription id, so do not notify of specific phone state changes.
     */
    /* package */ void notifyPhoneStateChanged() {
        mNotifier.notifyPhoneState(this);
        // Do nothing.
    }

    /**