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

Commit bc797baa authored by Suresh Kumar Sugguna's avatar Suresh Kumar Sugguna Committed by Deepak Kundra
Browse files

IMS: During CS retry, propagate reason code to UI

When an IMS call is retried over CS, inform the same to
the user via a toast display.

Change-Id: I218c0e8eb5795a066c56cd52d619b9eb76364237
CRs-Fixed: 797564
parent 9e54b35f
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -1431,6 +1431,19 @@ public final class ImsPhoneCallTracker extends CallTracker {
                Toast.makeText(mPhone.getContext(), msg, Toast.LENGTH_SHORT).show();
            }
        }

        @Override
        public void onCallRetryErrorReceived(ImsCall imsCall, ImsReasonInfo reasonInfo) {
            if (DBG) {
                log("onCallRetryErrorReceived ::  reasonInfo=" + reasonInfo);
            }

            if (mPhone != null) {
                String msg = "LTE HD voice is unavailable. 3G voice call will be connected." +
                        "Server Error code: " + reasonInfo.getCode();
                Toast.makeText(mPhone.getContext(), msg, Toast.LENGTH_SHORT).show();
            }
        }
    };

    /**