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

Commit 8d1d930b authored by Shuo Qian's avatar Shuo Qian
Browse files

Connect TelecomManager extras into ImsCallProfile for enriched outgoing call with call composer

Test: Treehugger
Bug: 173437870
Change-Id: Ieabd1acd1d5480dff41c315fb0122050e03e4736
Merged-In: Ieabd1acd1d5480dff41c315fb0122050e03e4736
(cherry picked from commit 65923e47)
parent be7382d8
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -1547,6 +1547,22 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
                    );
                }

                if (intentExtras.containsKey(android.telecom.TelecomManager.EXTRA_PRIORITY)) {
                    profile.setCallExtraInt(ImsCallProfile.EXTRA_PRIORITY, intentExtras.getInt(
                            android.telecom.TelecomManager.EXTRA_PRIORITY));
                }

                if (intentExtras.containsKey(android.telecom.TelecomManager.EXTRA_LOCATION)) {
                    profile.setCallExtraParcelable(ImsCallProfile.EXTRA_LOCATION,
                            intentExtras.getParcelable(
                                    android.telecom.TelecomManager.EXTRA_LOCATION));
                }

                if (intentExtras.containsKey(
                        android.telecom.TelecomManager.EXTRA_OUTGOING_PICTURE)) {
                    // TODO(hallliu) Set ImsCallProfile.EXTRA_PICTURE_URL with cached URL string
                }

                if (conn.hasRttTextStream()) {
                    profile.mMediaProfile.mRttMode = ImsStreamMediaProfile.RTT_MODE_FULL;
                }