diff --git a/Classes/AssistantView.h b/Classes/AssistantView.h index 815174526..20a9de39a 100644 --- a/Classes/AssistantView.h +++ b/Classes/AssistantView.h @@ -66,6 +66,8 @@ @property (weak, nonatomic) IBOutlet UILabel *activationSMSText; @property (weak, nonatomic) IBOutlet UILabel *accountLabel; +@property (weak, nonatomic) IBOutlet UIButton *qrCodeButton; +@property (weak, nonatomic) IBOutlet UIButton *downloadButton; @property (weak, nonatomic) IBOutlet UITextField *urlLabel; @property (weak, nonatomic) IBOutlet NSLayoutConstraint *createAccountNextButtonPositionConstraint; diff --git a/Classes/AssistantView.m b/Classes/AssistantView.m index e6adb5790..caba5b1e6 100644 --- a/Classes/AssistantView.m +++ b/Classes/AssistantView.m @@ -118,6 +118,7 @@ static UICompositeViewDescription *compositeDescription = nil; } mustRestoreView = NO; _outgoingView = DialerView.compositeViewDescription; + _qrCodeButton.hidden = !ENABLE_QRCODE; [self resetLiblinphone:FALSE]; } @@ -1256,9 +1257,9 @@ void assistant_is_account_linked(LinphoneAccountCreator *creator, LinphoneAccoun - (IBAction)onGotoRemoteProvisioningClick:(id)sender { ONCLICKBUTTON(sender, 100, { nextView = _remoteProvisioningView; - [self loadAssistantConfig:@"assistant_remote.rc"]; [self findTextField:ViewElement_URL].text = [LinphoneManager.instance lpConfigStringForKey:@"config-uri" inSection:@"misc"]; + [self loadAssistantConfig:@"assistant_remote.rc"]; }); } diff --git a/Classes/Base.lproj/AssistantViewScreens.xib b/Classes/Base.lproj/AssistantViewScreens.xib index 6cfab070c..119ccd336 100644 --- a/Classes/Base.lproj/AssistantViewScreens.xib +++ b/Classes/Base.lproj/AssistantViewScreens.xib @@ -21,6 +21,7 @@ + @@ -30,6 +31,7 @@ + @@ -1329,7 +1331,7 @@ Once it is done, come back here and click on the button. - -