{ "id": "136767", "key": "TIMOB-17722", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-06-27T18:43:51.000+0000", "created": "2014-09-18T06:33:55.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-3.4.0" ], "versions": [ { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-27T18:43:51.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": "The textfield change event gets fired when the soft keyboard is up and the device orientation is changed.\r\n\r\nThis is not a regression as the issue also occurs in SDK 3.3.0.GA\r\nThe issue occurs only on Android and not on iOS\r\n\r\nSteps to Reproduce:\r\n1. Run an application with code below on Android device\r\n2. Click on the textfield to invoke the soft keyboard\r\n3. Rotate the device to another orientation\r\n\r\nActual Result:\r\nThe change event for the textfield is fired and the console shows \"[info] Change Event Fired: TestChantgeEvent\" \r\n\r\nExpected Result:\r\nThe change event should fire only when there is change in text value in textfield and not on orientation change.\r\n\r\n{code}\r\nvar window = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\nvar textField = Ti.UI.createTextField({\r\n\ttop : 10,\r\n\tcolor : 'black',\r\n\tvalue : 'TestChangeEvent'\r\n});\r\n\r\ntextField.addEventListener('change', function(e) {\r\n\tTi.API.info(\"Change Event Fired: \" + e.value);\r\n});\r\n\r\nwindow.add(textField);\r\n\r\nwindow.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android : The change event for textfield fires on orientation change", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested On:\r\nSDK: 3.4.0.v20140917120000\r\nStudio: 3.4.0.201409161950\r\nCLI: 3.4.0-rc4\r\nAlloy: 1.5.0-rc2\r\nDevice: Nexus 5 (v4.4.4)", "comment": { "comments": [ { "id": "324668", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces\r\n\r\nTitanium SDK version 3.4.0 master\r\nTitanium Studio, build: 3.3.0.201407100905\r\nTitanium Command-Line Interface\r\nCLI version 3.3.0, \r\nAndroid device : Nexus 5, Android version : 4.4.4\r\n", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-19T06:45:26.000+0000", "updated": "2014-09-19T06:49:24.000+0000" }, { "id": "422971", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am unable to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170623141152\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-27T18:43:51.000+0000", "updated": "2017-06-27T18:43:51.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }