Fixed crash if service is killed before UI is paused
This commit is contained in:
parent
a2767496ff
commit
9b7361d6d9
2 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ android {
|
|||
defaultConfig {
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 29
|
||||
versionCode 4214
|
||||
versionCode 4215
|
||||
versionName "${project.version}"
|
||||
applicationId getPackageName()
|
||||
multiDexEnabled true
|
||||
|
|
|
@ -429,11 +429,11 @@ public abstract class MainActivity extends LinphoneGenericActivity
|
|||
}
|
||||
|
||||
private void quit() {
|
||||
goHomeAndClearStack();
|
||||
if (LinphoneService.isReady()
|
||||
&& LinphonePreferences.instance().getServiceNotificationVisibility()) {
|
||||
LinphoneService.instance().stopSelf();
|
||||
}
|
||||
goHomeAndClearStack();
|
||||
}
|
||||
|
||||
// Tab, Top and Status bars
|
||||
|
|
Loading…
Reference in a new issue