Fix placement of create account button if external account button is disabled.

This commit is contained in:
Ghislain MARY 2013-02-26 11:25:45 +01:00
parent 995078236a
commit 9a95856642

View file

@ -282,10 +282,12 @@ static UICompositeViewDescription *compositeDescription = nil;
}
if ([[LinphoneManager instance] lpConfigBoolForKey:@"hide_wizard_custom_account_button_preference"] == true) {
[externalAccountButton setHidden:TRUE];
if ([[LinphoneManager instance] lpConfigBoolForKey:@"show_wizard_logo_in_choice_view_preference"] == true) {
[createAccountButton setCenter: [connectAccountButton center]];
if ([externalAccountButton center].y != [connectAccountButton center].y) {
if ([[LinphoneManager instance] lpConfigBoolForKey:@"show_wizard_logo_in_choice_view_preference"] == true) {
[createAccountButton setCenter: [connectAccountButton center]];
}
[connectAccountButton setCenter: [externalAccountButton center]];
}
[connectAccountButton setCenter: [externalAccountButton center]];
}
}