From e48c06e677d5bf97704590349959f487b188bdf3 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Thu, 12 Jul 2012 11:20:49 +0200 Subject: [PATCH] Fix setup issue when creating account --- src/org/linphone/setup/SetupActivity.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/org/linphone/setup/SetupActivity.java b/src/org/linphone/setup/SetupActivity.java index 0a7cc7d8e..5cd20b97a 100644 --- a/src/org/linphone/setup/SetupActivity.java +++ b/src/org/linphone/setup/SetupActivity.java @@ -210,8 +210,19 @@ public class SetupActivity extends FragmentActivity implements OnClickListener { } public void isAccountVerified() { - next.setEnabled(true); Toast.makeText(this, getString(R.string.setup_account_validated), Toast.LENGTH_LONG).show(); + + LinphoneManager.getInstance().initializePayloads(); + + try { + LinphoneManager.getInstance().initFromConf(); + } catch (Throwable e) { + Log.e(e, "Error while initializing from config in first login activity"); + Toast.makeText(this, getString(R.string.error), Toast.LENGTH_LONG).show(); + } + + writePreference(R.string.first_launch_suceeded_once_key, true); + finish(); } public boolean onKeyDown(int keyCode, KeyEvent event) {