diff --git a/Classes/LinphoneManager.h b/Classes/LinphoneManager.h index 3b4b333ec..f55840e43 100644 --- a/Classes/LinphoneManager.h +++ b/Classes/LinphoneManager.h @@ -81,6 +81,10 @@ typedef struct _LinphoneManagerSounds { NSMutableArray *inhibitedEvent; + /* MODIFICATION: Add NSUSerdefault settings */ + NSDictionary *currentSettings; + /**/ + @public CallContext currentCallContextBeforeGoingBackground; } diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index 1643ab926..2c848ff61 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -1166,11 +1166,13 @@ static LinphoneCoreVTable linphonec_vtable = { if ([device respondsToSelector:@selector(isMultitaskingSupported)]) backgroundSupported = [device isMultitaskingSupported]; + BOOL isbackgroundModeEnabled; if (backgroundSupported) { isbackgroundModeEnabled = [[NSUserDefaults standardUserDefaults] boolForKey:@"backgroundmode_preference"]; } else { isbackgroundModeEnabled=false; } + lp_config_set_int(linphone_core_get_config(theLinphoneCore),"app","backgroundmode_preference", isbackgroundModeEnabled); [currentSettings release]; currentSettings = newSettings; diff --git a/submodules/linphone b/submodules/linphone index c97efee37..0a12fa9ce 160000 --- a/submodules/linphone +++ b/submodules/linphone @@ -1 +1 @@ -Subproject commit c97efee37aea1ccae3c476a108e988e47f38faa4 +Subproject commit 0a12fa9ce7af5c795722ce1f7ebad9bc85314d3b