Fix crash when no linphoneactivity is present
This commit is contained in:
parent
093afe65e5
commit
4bb6b919b9
1 changed files with 1 additions and 1 deletions
|
@ -851,7 +851,7 @@ public class LinphoneManager implements LinphoneListener {
|
|||
}
|
||||
|
||||
// Give user some hint about the error...
|
||||
if (state == State.Error) {
|
||||
if (state == State.Error && LinphoneActivity.isInstanciated() ) {
|
||||
LinphoneActivity.instance().displayCustomToast("Call errored: " + message, Toast.LENGTH_LONG);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue