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

Commit 3b4e30d2 authored by Sewook Seo's avatar Sewook Seo Committed by Android (Google) Code Review
Browse files

Merge "Notify CallAttributeListener IMS call type change"

parents 73a55a65 90daad03
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
@@ -3063,6 +3063,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;
        }