Try to fix LinphoneService not ready crash

This commit is contained in:
Erwan Croze 2017-06-02 14:57:50 +02:00
parent 31dd258e8c
commit 2d39a0c22c

View file

@ -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));