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

Commit df1247f6 authored by Grace Jia's avatar Grace Jia
Browse files

Display "Can't hold call" when failed call hold happens on WCDMA network.

Bug: 130208326
Test: Test manually by sending failed message
Change-Id: I34b3a2decd82fae0aefeb308f71c09b22422d5be
parent b2180d08
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -1462,8 +1462,15 @@ public class GsmCdmaCallTracker extends CallTracker {
                        if (msg.what == EVENT_SWITCH_RESULT) {
                            Connection connection = mForegroundCall.getLatestConnection();
                            if (connection != null) {
                                if (mBackgroundCall.getState() != GsmCdmaCall.State.HOLDING) {
                                    connection.onConnectionEvent(
                                        android.telecom.Connection.EVENT_CALL_SWITCH_FAILED, null);
                                            android.telecom.Connection.EVENT_CALL_HOLD_FAILED,
                                            null);
                                } else {
                                    connection.onConnectionEvent(
                                            android.telecom.Connection.EVENT_CALL_SWITCH_FAILED,
                                            null);
                                }
                            }
                        }
                        mPhone.notifySuppServiceFailed(getFailedService(msg.what));