From c1fe7e39ef1e38fe9d65b01f601caade618a2b18 Mon Sep 17 00:00:00 2001 From: Brieuc Viel Date: Wed, 29 Nov 2017 16:46:38 +0100 Subject: [PATCH] [Assistant] upgrade parameter to hide/show button on assistantView --- Classes/AssistantView.m | 4 +++- Resources/linphonerc-factory | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Classes/AssistantView.m b/Classes/AssistantView.m index 823c86255..a992fd86d 100644 --- a/Classes/AssistantView.m +++ b/Classes/AssistantView.m @@ -449,12 +449,14 @@ static UICompositeViewDescription *compositeDescription = nil; BOOL show_logo = [LinphoneManager.instance lpConfigBoolForKey:@"show_assistant_logo_in_choice_view_preference"]; BOOL show_extern = ![LinphoneManager.instance lpConfigBoolForKey:@"hide_assistant_custom_account"]; BOOL show_new = ![LinphoneManager.instance lpConfigBoolForKey:@"hide_assistant_create_account"]; - + BOOL show_fetch_remote = ![LinphoneManager.instance lpConfigBoolForKey:@"show_remote_provisioning_in_assistant"]; + if (!placement_done) { // visibility _welcomeLogoImage.hidden = !show_logo; _gotoLoginButton.hidden = !show_extern; _gotoCreateAccountButton.hidden = !show_new; + _gotoRemoteProvisioningButton.hidden = !show_fetch_remote; // placement if (show_logo && show_new && !show_extern) { diff --git a/Resources/linphonerc-factory b/Resources/linphonerc-factory index dfd3c1443..defda1860 100644 --- a/Resources/linphonerc-factory +++ b/Resources/linphonerc-factory @@ -8,6 +8,11 @@ hide_assistant_custom_account=0 #Hide in the assistant the button to create a new SIP account hide_assistant_create_account=0 +#Hide in the assistant the logo +show_assistant_logo_in_choice_view_preference=0 + +#Hide in the assistant the button to fetch a remote configuration +show_remote_provisioning_in_assistant=0 #contact_display_username_only=1 #contact_filter_on_default_domain=1