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

Commit 90daad03 authored by Sewook Seo's avatar Sewook Seo
Browse files

Notify CallAttributeListener IMS call type change

Fix to notify CallAttributesListener when IMS call type changed.

Bug: 265610260
Test: device test. VZW TC VoWiFi 5.15
Change-Id: I5359edc5405b61735ab1473caefe2f5a64d8c7a7
parent 13fabc31
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -201,6 +201,10 @@ abstract class ImsPhoneBase extends Phone {
        AsyncResult ar = new AsyncResult(null, this, null);
        mPreciseCallStateRegistrants.notifyRegistrants(ar);

        notifyPreciseCallStateToNotifier();
    }

    public void notifyPreciseCallStateToNotifier() {
        ImsPhoneCall ringingCall = (ImsPhoneCall) getRingingCall();
        ImsPhoneCall foregroundCall = (ImsPhoneCall) getForegroundCall();
        ImsPhoneCall backgroundCall = (ImsPhoneCall) getBackgroundCall();
+5 −0
Original line number Diff line number Diff line
@@ -3048,6 +3048,11 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
            conn.maybeChangeRingbackState();

            maybeSetVideoCallProvider(conn, imsCall);
            // IMS call profile might be changed while call state is maintained. In this case, it's
            // required to notify to CallAttributesListener.
            // Since call state is not changed, TelephonyRegistry will not notify to
            // PreciseCallStateListener.
            mPhone.notifyPreciseCallStateToNotifier();
            return;
        }