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

Commit a729b071 authored by Suresh Kumar Sugguna's avatar Suresh Kumar Sugguna Committed by Gerrit - the friendly Code Review server
Browse files

IMS: Display call transfer option for non-emergency calls

Display the explicit call transfer options only during
non-emergency calls.

Change-Id: Idbb101ec393d7011fbd46c9a8d248e2f26500d94
CRs-Fixed: 1053890
parent b69e6e5d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -471,7 +471,7 @@ public class CallButtonPresenter extends Presenter<CallButtonPresenter.CallButto
                || callState == Call.State.ONHOLD);

        final boolean showMute = call.can(android.telecom.Call.Details.CAPABILITY_MUTE);
        int callTransferCapabilities = call.getTransferCapabilities();
        int callTransferCapabilities = call.isEmergencyCall()? 0 : call.getTransferCapabilities();
        boolean showAddParticipant = call.can(CAPABILITY_ADD_PARTICIPANT);
        if (ui.getContext().getResources().getBoolean(
            R.bool.add_participant_only_in_conference)) {