[Assistant] upgrade parameter to hide/show button on assistantView

This commit is contained in:
Brieuc Viel 2017-11-29 16:46:38 +01:00
parent bc94e46623
commit c1fe7e39ef
2 changed files with 8 additions and 1 deletions

View file

@ -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) {

View file

@ -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