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

Commit 716d4add authored by Suchand Ghosh's avatar Suchand Ghosh Committed by Linux Build Service Account
Browse files

IMS: Add participant support

Insert "add_participant" extra
to dial intent.

Change-Id: I42fa59d35ab5027500aea460dd8dc077d6bcf952
CRs-Fixed: 720697
parent b674c9f1
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -219,6 +219,10 @@ public class DialpadFragment extends AnalyticsFragment
    /** Identifier for the "Add Call" intent extra. */
    /** Identifier for the "Add Call" intent extra. */
    private static final String ADD_CALL_MODE_KEY = "add_call_mode";
    private static final String ADD_CALL_MODE_KEY = "add_call_mode";


    /** Identifier for the "Add Participant" intent extra. */
    private static final String ADD_PARTICIPANT_KEY = "add_participant";
    private boolean mAddParticipant = false;

    /**
    /**
     * Identifier for intent extra for sending an empty Flash message for
     * Identifier for intent extra for sending an empty Flash message for
     * CDMA networks. This message is used by the network to simulate a
     * CDMA networks. This message is used by the network to simulate a
@@ -546,6 +550,9 @@ public class DialpadFragment extends AnalyticsFragment
                }
                }


            }
            }
        } else {
            mAddParticipant = intent.getBooleanExtra(ADD_PARTICIPANT_KEY, false);
            ((HostInterface) getActivity()).setConferenceDialButtonVisibility(true);
        }
        }
        showDialpadChooser(needToShowDialpadChooser);
        showDialpadChooser(needToShowDialpadChooser);
        setStartedFromNewIntent(false);
        setStartedFromNewIntent(false);
@@ -1193,6 +1200,7 @@ public class DialpadFragment extends AnalyticsFragment
                        // must be dial conference add extra
                        // must be dial conference add extra
                        intent.putExtra(TelephonyProperties.EXTRA_DIAL_CONFERENCE_URI, true);
                        intent.putExtra(TelephonyProperties.EXTRA_DIAL_CONFERENCE_URI, true);
                    }
                    }
                    intent.putExtra(ADD_PARTICIPANT_KEY, mAddParticipant);
                    DialerUtils.startActivityWithErrorToast(getActivity(), intent);
                    DialerUtils.startActivityWithErrorToast(getActivity(), intent);
                    hideAndClearDialpad(false);
                    hideAndClearDialpad(false);
                }
                }