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

Commit ddad9e0d authored by Hall Liu's avatar Hall Liu Committed by Android (Google) Code Review
Browse files

Merge "Fix capability checking for reject" into nyc-dev

parents 8b11674d 4b1617a6
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -812,7 +812,7 @@ public class ConnectionServiceWrapper extends ServiceBinder {
                logOutgoing("reject %s", callId);
                logOutgoing("reject %s", callId);


                if (rejectWithMessage && call.can(
                if (rejectWithMessage && call.can(
                        android.telecom.Call.Details.CAPABILITY_CAN_SEND_RESPONSE_VIA_CONNECTION)) {
                        Connection.CAPABILITY_CAN_SEND_RESPONSE_VIA_CONNECTION)) {
                    mServiceInterface.rejectWithMessage(callId, message);
                    mServiceInterface.rejectWithMessage(callId, message);
                } else {
                } else {
                    mServiceInterface.reject(callId);
                    mServiceInterface.reject(callId);