make sure trace are enable at the very begening

This commit is contained in:
Jehan Monnier 2012-05-02 09:05:05 +02:00
parent b00b01840f
commit 9c7823db22

View file

@ -456,6 +456,9 @@ public final class LinphoneManager implements LinphoneCoreListener {
private synchronized void startLibLinphone() {
try {
copyAssetsFromPackage();
//traces alway start with traces enable to not missed first initialization
;
LinphoneCoreFactory.instance().setDebugMode(getPrefBoolean(R.string.pref_debug_key,true));
mLc = LinphoneCoreFactory.instance().createLinphoneCore(
this, mLinphoneConfigFile, mLinphoneInitialConfigFile, null);
@ -562,9 +565,7 @@ public final class LinphoneManager implements LinphoneCoreListener {
}
public void initFromConf() throws LinphoneConfigException {
//traces
boolean lIsDebug = true;//mPref.getBoolean(getString(R.string.pref_debug_key), false);
LinphoneCoreFactory.instance().setDebugMode(lIsDebug);
initFromConfTunnel();