Try to fix LinphoneService not ready crash
This commit is contained in:
parent
31dd258e8c
commit
2d39a0c22c
1 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,11 @@ public class LinphoneGenericActivity extends Activity {
|
|||
/*After a crash, Android restart the last Activity so we need to check
|
||||
* if all dependencies are load
|
||||
*/
|
||||
if (!LinphoneService.isReady()) {
|
||||
finish();
|
||||
startService(getIntent().setClass(this, LinphoneService.class));
|
||||
return;
|
||||
}
|
||||
if (!LinphoneManager.isInstanciated()) {
|
||||
finish();
|
||||
startActivity(getIntent().setClass(this, LinphoneLauncherActivity.class));
|
||||
|
|
Loading…
Reference in a new issue