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

Commit 9e2ecc54 authored by Shuo Qian's avatar Shuo Qian Committed by Gerrit Code Review
Browse files

Merge "Connect TelecomManager extras into ImsCallProfile for enriched outgoing...

Merge "Connect TelecomManager extras into ImsCallProfile for enriched outgoing call with call composer"
parents c5d41b74 8d1d930b
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;
                }