From be8dc562ec2dd6ef4f278094a7210aab76b92db0 Mon Sep 17 00:00:00 2001 From: Margaux Clerc Date: Tue, 19 Jan 2016 11:26:43 +0100 Subject: [PATCH] Fix error display --- src/org/linphone/LinphoneActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/linphone/LinphoneActivity.java b/src/org/linphone/LinphoneActivity.java index 54e4aed22..39e07ccba 100644 --- a/src/org/linphone/LinphoneActivity.java +++ b/src/org/linphone/LinphoneActivity.java @@ -232,9 +232,9 @@ public class LinphoneActivity extends Activity implements OnClickListener, Conta // Convert LinphoneCore message for internalization if (message != null && call.getErrorInfo().getReason() == Reason.Declined) { displayCustomToast(getString(R.string.error_call_declined), Toast.LENGTH_SHORT); - } else if (message != null && call.getReason() == Reason.NotFound) { + } else if (message != null && call.getErrorInfo().getReason() == Reason.NotFound) { displayCustomToast(getString(R.string.error_user_not_found), Toast.LENGTH_SHORT); - } else if (message != null && call.getReason() == Reason.Media) { + } else if (message != null && call.getErrorInfo().getReason() == Reason.Media) { displayCustomToast(getString(R.string.error_incompatible_media), Toast.LENGTH_SHORT); } else if (message != null && state == State.Error) { displayCustomToast(getString(R.string.error_unknown) + " - " + message, Toast.LENGTH_SHORT);