Fix race condition of crash on first launch
This commit is contained in:
parent
e9f4817969
commit
2aa42957ea
1 changed files with 2 additions and 1 deletions
|
@ -167,7 +167,8 @@ public class LinphoneActivity extends LinphoneGenericActivity implements OnClick
|
|||
startActivity(wizard);
|
||||
finish();
|
||||
return;
|
||||
} else if (savedInstanceState == null && (useFirstLoginActivity && LinphonePreferences.instance().isFirstLaunch())) {
|
||||
} else if (savedInstanceState == null && (useFirstLoginActivity && LinphoneManager.getLcIfManagerNotDestroyedOrNull() != null
|
||||
&& LinphonePreferences.instance().isFirstLaunch())) {
|
||||
if (LinphonePreferences.instance().getAccountCount() > 0) {
|
||||
LinphonePreferences.instance().firstLaunchSuccessful();
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue