mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-19 04:28:08 +00:00
Fix crash when no linphoneactivity is present
This commit is contained in:
parent
ac90800296
commit
0cd6c57da2
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…
Add table
Reference in a new issue