From daa87974dce5fc3f90325c82a079bba9679e6cef Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Fri, 17 Feb 2017 12:57:05 -0500 Subject: [PATCH] Respond to CR. // FREEBIE --- Signal/src/view controllers/RegistrationViewController.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Signal/src/view controllers/RegistrationViewController.m b/Signal/src/view controllers/RegistrationViewController.m index 5ae7a1169..ee73da604 100644 --- a/Signal/src/view controllers/RegistrationViewController.m +++ b/Signal/src/view controllers/RegistrationViewController.m @@ -26,7 +26,7 @@ static NSString *const kCodeSentSegue = @"codeSent"; // Do any additional setup after loading the view. _phoneNumberTextField.delegate = self; - _phoneNumberTextField.keyboardType = UIKeyboardTypePhonePad; + _phoneNumberTextField.keyboardType = UIKeyboardTypeNumberPad; [self populateDefaultCountryNameAndCode]; [[Environment getCurrent] setSignUpFlowNavigationController:self.navigationController]; @@ -183,8 +183,8 @@ static NSString *const kCodeSentSegue = @"codeSent"; bool isJustDeletion = insertionText.length == 0; NSUInteger cursorPositionAfterChange = left.length + center.length; NSString *textAfterReformat = - [PhoneNumber bestEffortFormatPartialUserSpecifiedTextToLookLikeAPhoneNumber:textAfterChange - withSpecifiedCountryCodeString:_countryCodeButton.titleLabel.text]; + [PhoneNumber bestEffortFormatPartialUserSpecifiedTextToLookLikeAPhoneNumber:textAfterChange + withSpecifiedCountryCodeString:_countryCodeButton.titleLabel.text]; NSUInteger cursorPositionAfterReformat = [PhoneNumberUtil translateCursorPosition:cursorPositionAfterChange from:textAfterChange to:textAfterReformat