{ "id": "91716", "key": "TIMOB-9098", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13406", "description": "Sprint 2012-10 API", "name": "Sprint 2012-10 API", "archived": true, "released": true, "releaseDate": "2012-05-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-11T00:22:01.000+0000", "created": "2012-05-10T12:04:22.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "api", "module_textfield", "qe-testadded" ], "versions": [ { "id": "12571", "description": "CI for 1_7_X", "name": "Release 1.7.6", "archived": true, "released": false }, { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "21947", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "103234", "key": "TIMOB-11431", "fields": { "summary": "Android: TextField - PasswordMask does not work on HTC EVO 4.0.3", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-10-12T18:10:25.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": "h4. Problem Description\r\nThe masked text is not masked when you are in landscape mode (only happening in Google Nexus with Android 4.0). \r\n\r\nh4. Expected Result\r\nThe text marked just fine. \r\n\r\nh4. Actual Results\r\nThe text is not marked when in landscape mode (only in device).\r\n\r\nh4. Test case\r\n1. Create new mobile Project\r\n2. Add this code to app.js:\r\n{code}\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nwin.orientationModes=[\r\nTitanium.UI.PORTRAIT,\r\n Titanium.UI.LANDSCAPE_LEFT,\r\n Titanium.UI.LANDSCAPE_RIGHT\r\n ];\r\nvar txtfld = Titanium.UI.createTextField({\r\n color:'#385487',\r\n right:'3.1%',\r\n left:'15%',\r\n borderStyle:Titanium.UI.INPUT_BORDERSTYLE_NONE,\r\n border:0,\r\n top:0,\r\n width:300,\r\n borderColor: 'transparent',\r\n backgroundColor: 'transparent',\r\n font:{fontSize:48,fontFamily:'Helvetica Neue'},\r\n returnKeyType:Titanium.UI.RETURNKEY_DONE,\r\n passwordMask:true,\r\n keyboardType:Titanium.UI.KEYBOARD_NUMBERS_PUNCTUATION,\r\n hintText:'SSN'\r\n });\r\n \r\nwin.add(txtfld);\r\n \r\nwin.open();\r\n{code}\r\n3. Run in Google Nexus with Android 4.0\r\n\r\nh4. Extra info \r\nThis is working fine on emulator and several devices. This is just failing on Google Nexus with Android 4.0", "attachment": [ { "id": "28005", "filename": "p51890.124635.1338321493569_SSNnotMasking.jpeg", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-05-29T13:08:16.000+0000", "size": 27926, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android: MaskedText not masked on landscape mode", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Titanium SDK version: 2.1.0v20120504\r\nJavascript Engine: V8 \r\nPlatform & version: Android 4.0 \r\nDevice Details: Google Nexus Android 4.0\r\nHost Operating System: OS X 10.7.3\r\nTitanium Studio version: 2.0", "comment": { "comments": [ { "id": "194680", "author": { "name": "mkrug", "key": "mkrug", "displayName": "Markus Krug", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The example above works for me when using the latest nightly build (Oct 10 2011 11:48 r074cad38). Unfortunately, it does not work for my use case where I create the text field like this:\r\n\r\n{code}\r\nTi.UI.createTextField({\r\n className: 'editPasswordTextField',\r\n value: '',\r\n passwordMask: true,\r\n autocorrect: false,\r\n hintText: 'Password',\r\n keyboardType: Ti.UI.KEYBOARD_DEFAULT,\r\n returnKeyType: Ti.UI.RETURNKEY_DONE,\r\n borderStyle: Ti.UI.INPUT_BORDERSTYLE_NONE,\r\n autocapitalization: Ti.UI.TEXT_AUTOCAPITALIZATION_NONE\r\n });\r\n{code}\r\n\r\nTested with Samsung Galaxy S2 (GT-I9100, no branding), Android-Version 4.0.3. Built under Mac OS X 10.7.4", "updateAuthor": { "name": "mkrug", "key": "mkrug", "displayName": "Markus Krug", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-14T10:47:08.000+0000", "updated": "2012-05-14T10:47:08.000+0000" }, { "id": "194689", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The sample code above describes a different scenario, which affects 2.x phones as well as 4.x. A PR for this should be up momentarily.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-14T11:42:28.000+0000", "updated": "2012-05-14T11:42:28.000+0000" }, { "id": "194713", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Merged second PR for this issue: https://github.com/appcelerator/titanium_mobile/pull/2182", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-14T14:28:22.000+0000", "updated": "2012-05-14T14:28:22.000+0000" }, { "id": "195188", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/2209 merged for master", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-05-17T12:52:03.000+0000", "updated": "2012-05-17T12:52:03.000+0000" }, { "id": "195194", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/2189 merged for 2_0_X", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-05-17T13:40:38.000+0000", "updated": "2012-05-17T13:40:38.000+0000" }, { "id": "195341", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 2.0.2.v20120518140206 on Nexus S 4.0.4", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-18T15:16:05.000+0000", "updated": "2012-05-18T15:16:05.000+0000" }, { "id": "196343", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "This is an example of how is not masking the text", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-05-29T13:08:16.000+0000", "updated": "2012-05-29T13:08:16.000+0000" }, { "id": "196353", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The fix was merged on May 17th. I tested on latest master and 2.0.X on 4.0.4 device and it works fine. Resolving bug.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-29T14:00:30.000+0000", "updated": "2012-05-29T14:00:30.000+0000" }, { "id": "199915", "author": { "name": "sguduru", "key": "sguduru", "displayName": "Smitha Guduru", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The text is masked in landscape mode and portrait mode on \r\n\r\nDevice: Nexus S(4.0.4)\r\nTitanium Studio, build: 2.2.0.201206222035\r\nTitanium SDK: 2.1.0.v20120622174154\r\n", "updateAuthor": { "name": "sguduru", "key": "sguduru", "displayName": "Smitha Guduru", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T13:33:23.000+0000", "updated": "2012-06-23T13:33:23.000+0000" }, { "id": "202527", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening to edit label", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-11T00:12:15.000+0000", "updated": "2012-07-11T00:12:15.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }