From ef792ae0ab9acf2ccc224f06f46e22368b9d7848 Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Thu, 24 Nov 2016 09:30:07 +0100 Subject: [PATCH] Revert "Remove useless setcontext for linphonecore" This reverts commit 3e91c26f8af0695fe346062d033f23a01ec946f9. --- java/impl/org/linphone/core/LinphoneCoreFactoryImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/java/impl/org/linphone/core/LinphoneCoreFactoryImpl.java b/java/impl/org/linphone/core/LinphoneCoreFactoryImpl.java index 616bb2976..582d06806 100644 --- a/java/impl/org/linphone/core/LinphoneCoreFactoryImpl.java +++ b/java/impl/org/linphone/core/LinphoneCoreFactoryImpl.java @@ -132,6 +132,7 @@ public class LinphoneCoreFactoryImpl extends LinphoneCoreFactory { File factory = factoryConfig == null ? null : new File(factoryConfig); LinphoneCore lc = new LinphoneCoreImpl(listener, user, factory, userdata); lc.enableOpenH264(openh264Enabled); + if(context!=null) lc.setContext(context); return lc; } catch (IOException e) { throw new LinphoneCoreException("Cannot create LinphoneCore",e); @@ -146,6 +147,7 @@ public class LinphoneCoreFactoryImpl extends LinphoneCoreFactory { MediastreamerAndroidContext.setContext(context); LinphoneCore lc = new LinphoneCoreImpl(listener); lc.enableOpenH264(openh264Enabled); + if(context!=null) lc.setContext(context); return lc; } catch (IOException e) { throw new LinphoneCoreException("Cannot create LinphoneCore",e);