forked from mirrors/linphone-iphone
assistant: detect invalid domain and show error in that case
This commit is contained in:
parent
f7d6ee33a1
commit
a8d1a4d845
3 changed files with 4 additions and 4 deletions
|
|
@ -666,8 +666,8 @@ void assistant_validation_tested(LinphoneAccountCreator *creator, LinphoneAccoun
|
|||
replacementString:(NSString *)string {
|
||||
UIAssistantTextField *atf = (UIAssistantTextField *)textField;
|
||||
BOOL replace = YES;
|
||||
// if we are hitting backspace, invalid range is given (length=1 instead of text size, new string="")
|
||||
if ([string isEqual:@""]) {
|
||||
// if we are hitting backspace on secure entry, this will clear all text
|
||||
if ([string isEqual:@""] && textField.isSecureTextEntry) {
|
||||
range = NSMakeRange(0, atf.text.length);
|
||||
}
|
||||
[atf textField:atf shouldChangeCharactersInRange:range replacementString:string];
|
||||
|
|
|
|||
|
|
@ -798,7 +798,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
|
||||
picker.mailComposeDelegate = self;
|
||||
|
||||
[picker setSubject:@"Linphone iOS Logs"];
|
||||
[picker setSubject:@"<Please describe your problem>"];
|
||||
[picker setToRecipients:[NSArray arrayWithObjects:@"linphone-iphone@belledonne-communications.com", nil]];
|
||||
[picker setMessageBody:@"Here are information about an issue I had on my device.\nI was "
|
||||
@"doing ...\nI expected Linphone to ...\nInstead, I got an "
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 60708a53ab17ccb5084f3ffcbc288edbb5bd3633
|
||||
Subproject commit 3739d2c8669ad122aa402c35e410f82c53aad662
|
||||
Loading…
Add table
Reference in a new issue