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

Commit 6cf35464 authored by Hall Liu's avatar Hall Liu
Browse files

Integrate call composer into the call flow

Set the server URL of the uploaded picture when creating the
ImsCallProfile for an outgoing call.

Bug: 177613111
Test: atest CallComposerTest

Change-Id: I4514f60003af3f64636efd48360c1ab0c208b798
parent 9e5848cd
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.os.ParcelUuid;
import android.os.PersistableBundle;
import android.os.Registrant;
import android.os.RegistrantList;
@@ -61,6 +62,7 @@ import android.telephony.PhoneNumberUtils;
import android.telephony.ServiceState;
import android.telephony.SubscriptionInfo;
import android.telephony.SubscriptionManager;
import android.telephony.TelephonyLocalConnection;
import android.telephony.TelephonyManager;
import android.telephony.emergency.EmergencyNumber;
import android.telephony.ims.ImsCallProfile;
@@ -1596,7 +1598,10 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {

                if (intentExtras.containsKey(
                        android.telecom.TelecomManager.EXTRA_OUTGOING_PICTURE)) {
                    // TODO(hallliu) Set ImsCallProfile.EXTRA_PICTURE_URL with cached URL string
                    String url = TelephonyLocalConnection.getCallComposerServerUrlForHandle(
                            mPhone.getSubId(), ((ParcelUuid) intentExtras.getParcelable(
                                    TelecomManager.EXTRA_OUTGOING_PICTURE)).getUuid());
                    profile.setCallExtra(ImsCallProfile.EXTRA_PICTURE_URL, url);
                }

                if (conn.hasRttTextStream()) {