Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18365] iOS, KitchenSink: Autocorrect when adding contact results in wrong contact name

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-01-12T23:31:39.000+0000
Affected Version/sRelease 3.5.0
Fix Version/sRelease 3.5.0, Release 4.0.0
ComponentsiOS
Labelscontacts, ios, kitchensink, qe-3.5.0, regression
ReporterEric Wieber
AssigneeJon Alter
Created2015-01-12T19:46:56.000+0000
Updated2015-02-02T20:47:46.000+0000

Description

When adding contacts with auto-correct on, the name gets autocorrected. However, when adding the contact, the original, not auto-corrected name is used. This is a regression as names are added by the auto-corrected name in 3.4.1.GA *Steps to reproduce issue*: 1. Run the KitchenSink app 2. Go to Phone -> Contacts -> Add Contact 3. Enter a name that will be auto-corrected and add the contact 4. Go to the device's contacts 5. Notice that the original name was used when adding the contact, not the auto-corrected name. *Expected Results*: The auto-corrected name is used for the contact *Notes*: This is a regression.

Comments

  1. Jon Alter 2015-01-12

    PRs master: https://github.com/appcelerator/titanium_mobile/pull/6562 3_5_X: https://github.com/appcelerator/titanium_mobile/pull/6563

    Steps to repro:

    1. Run the code below 2. Type some letters that will force an autocorrect 3. Hit return 4. The title of the button should now change to the autocorrected text rather than what the text was when return was pressed
       var win = Ti.UI.createWindow({
           backgroundColor: 'white'
       });
       win.open();
       
       var tf = Ti.UI.createTextField({
           text:'',
           borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,
           top:50,
           right:10,
           left:10
       });
       win.add(tf);
       
       var button = Ti.UI.createButton({
           title:'Click me',
           borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,
           top:100,
           right:10,
           left:10
       });
       win.add(button);
       
       button.addEventListener('click', function() {
           button.title = tf.value;
           console.log('Text: ' + tf.value);
       });
       
  2. Wilson Luu 2015-01-13

    Closing ticket as fixed. Verified autocorrected strings are used with KS master (ec91024c39d58924995f3b689bb33ee1fc2b2b97) and the above sample code. Tested on: Appcelerator Studio, build: 3.4.1.201410281743 SDK build: 3.5.0.v20150112153317 CLI: 3.4.1 Alloy: 1.5.1 Xcode: 6.2 beta 3 Devices: iphone 6 plus (8.1.1), iphone 5 (8.1.1)

JSON Source