Fixed crash if service intent is null
This commit is contained in:
parent
5a7d884686
commit
335c677c7f
2 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
[](https://gitlab.linphone.org/BC/public/linphone-android/commits/feature/release-4.1)
|
[](https://gitlab.linphone.org/BC/public/linphone-android/commits/master)
|
||||||
|
|
||||||
Linphone is a free VoIP and video softphone based on the SIP protocol.
|
Linphone is a free VoIP and video softphone based on the SIP protocol.
|
||||||
|
|
||||||
|
|
|
@ -238,6 +238,7 @@ public final class LinphoneService extends Service {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (Version.sdkAboveOrEqual(Version.API26_O_80)
|
if (Version.sdkAboveOrEqual(Version.API26_O_80)
|
||||||
|
&& intent != null
|
||||||
&& intent.getBooleanExtra("ForceStartForeground", false)) {
|
&& intent.getBooleanExtra("ForceStartForeground", false)) {
|
||||||
mNotificationManager.startForeground();
|
mNotificationManager.startForeground();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue