{ "id": "78123", "key": "TIMOB-4747", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "12077", "description": "", "name": "Sprint 2011-37", "archived": true, "released": true, "releaseDate": "2011-09-19" }, { "id": "12470", "description": "", "name": "Release 1.7.4", "archived": true, "released": true, "releaseDate": "2011-10-31" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-11-05T13:55:22.000+0000", "created": "2011-07-22T10:33:31.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2014-06-19T12:46:15.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h3. The Problem:\r\nSetting the passwordMask on a textfield works as expected. Setting the keyboardType also works as expected. When both properties are together, the keyboardType gets ignored.\r\n\r\nh3. The Code:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'#ccc'\r\n});\r\n\r\nvar pinTextField = Ti.UI.createTextField({\r\n\tcolor:'#333333', value: '',\r\n\ttextAlign:'center',\r\n\tpasswordMask:true,\r\n\twidth:200,\r\n\theight:100,\r\n\tkeyboardType:Titanium.UI.KEYBOARD_PHONE_PAD,\r\n\tborderStyle:Ti.UI.INPUT_BORDERSTYLE_ROUNDED,\r\n\tfont:{fontSize:12}\r\n});\r\n\r\nwin.add(pinTextField);\r\n\r\nwin.open();\r\n{code}\r\nh3. The Ticket:\r\nAssociated Helpdesk ticket: *APP-876152*", "attachment": [], "flagged": false, "summary": "Android: passwordMask and keyboardType", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "163336", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h3.Associated helpdesk ticekt:APP-382186", "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-18T12:45:55.000+0000", "updated": "2011-08-18T12:46:09.000+0000" }, { "id": "165718", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "For testing, please do two things:\r\n\r\n1) Use the sample app.js from above here in this JIRA ticket to test the fix for the specific failcase (password + phone pad).\r\n\r\n2) Do the KitchenSink Controls -> TextField tests, particularly \"Keyboard\" and \"The Rest\", to be sure I haven't broken anything.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-09-12T15:55:26.000+0000", "updated": "2011-09-12T15:55:26.000+0000" }, { "id": "165719", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Pull request ready\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/459", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-09-12T15:58:15.000+0000", "updated": "2011-09-12T15:58:15.000+0000" }, { "id": "166220", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "*NOTE* - Source code of Android's TextView.java shows that they really only consider the field to be password char masked if the input type class is TEXT, and therefore not PHONE. So, technically speaking, the combination of using the phone pad keyboard and password characters is not really supported. The result of this is that some devices -- such as Nexus Ones running 2.3.4 -- will show the clear text when you rotate the device after inputting numbers from the soft phone pad. Meaning: a) Start Portrait; b) enter numbers using the soft phone pad; c) they will appropriately be hidden by the password character; d) rotate the device to landscape; 5) suddenly you will clearly see the numbers you entered -- the password characters aren't used anymore.\r\n\r\nThis problem does *not* occur on all devices. For example, the HTC Desire running Android 2.2 does not exhibit this unfortunate behavior, nor does the T-Mobile G-Slate running Android 3.0.1. But, in our testing, the Nexus Ones running 2.3.3 or 2.3.4 *do* exhibit this problem, as do Nexus S's running 2.3.4 and the HTC Hero running Android 2.1. (There may be several other devices which we have not tested which either do or do not exhibit the problem.)\r\n\r\nIt could be that the devices which do *not* exhibit the problem are using code patched by the manufacturer.\r\n\r\nFor more information:\r\n\r\n1) http://stackoverflow.com/questions/2017674/edittext-set-for-password-with-phone-number-input-android/6146252#6146252\r\n\r\n2) http://stackoverflow.com/questions/2420181/android-numeric-password-field/4014588#4014588 (See Marcus Wolschon's comment).\r\n\r\n3) http://code.google.com/p/android/issues/detail?id=13171&can=1&q=TextView%20landscape%20password&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars ", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-09-15T14:01:53.000+0000", "updated": "2011-09-15T14:06:44.000+0000" }, { "id": "167101", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Review, merge.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-27T10:35:07.000+0000", "updated": "2011-09-27T10:35:07.000+0000" }, { "id": "168178", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.8.0.v20111006001414 on\nHero 2.1\nMotorola Xoom 3.2\niPhone 4 4.2.10", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-06T15:29:24.000+0000", "updated": "2011-10-06T15:29:24.000+0000" }, { "id": "169846", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.7.4.v20111019130614 on\r\nDroid 2.2.2\r\nHero 2.1\r\nMotorola Xoom 3.2", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-20T10:44:55.000+0000", "updated": "2011-10-20T10:44:55.000+0000" }, { "id": "171623", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Standardizing summary and labels.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-05T13:55:05.000+0000", "updated": "2011-11-05T13:55:05.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }