mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-18 20:08:08 +00:00
Fix error display
This commit is contained in:
parent
66ce606019
commit
be8dc562ec
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue