{ "id": "165345", "key": "TIMOB-24322", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-02-06T21:39:14.000+0000", "created": "2017-01-17T23:04:28.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "change", "community", "notable", "searchview" ], "versions": [], "issuelinks": [], "assignee": { "name": "fmerzadyan", "key": "fmerzadyan2", "displayName": "Frankie Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-02-06T21:39:34.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": "Basically, is the same issue of TIMOB-13721 .\r\n\r\nPR: https://github.com/appcelerator/titanium_mobile/pull/8760\r\n\r\nStep to reproduce :\r\n1. Create Android SearchView and set value property on initialization.\r\n2. Add “change” event listener to the SearchView.\r\n3. Wait for the alert to appear.\r\n\r\nThe change event should not fire automatically when the searchView is initialized with a text value.\r\n\r\n{code:java}\r\n////// Begin Test Case ///////\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar searchView = Ti.UI.Android.createSearchView({\r\n value:\"\", // it may be any value...\r\n iconified: false\r\n});\r\n\r\nsearchView.addEventListener(\"change\",function(){\r\n alert(\"Fired Change Event!\");\r\n});\r\n\r\nwin.add(searchView);\r\nwin.open();\r\n////// End Test Case ///////\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: SearchView: “change” event is fired on SearchView first initialization.", "creator": { "name": "grazianogrespan", "key": "grazianogrespan", "displayName": "grazianogrespan", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "grazianogrespan", "key": "grazianogrespan", "displayName": "grazianogrespan", "active": true, "timeZone": "Europe/Rome" }, "environment": "O.S : macOS Sierra\r\nTi SDK: 6.0.1.GA\r\nAndroid Emulator O.S 6.0", "closedSprints": [ { "id": 796, "state": "closed", "name": "2017 Sprint 02 SDK", "startDate": "2017-01-15T00:00:41.845Z", "endDate": "2017-01-29T00:00:00.000Z", "completeDate": "2017-01-30T21:10:44.640Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "404768", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey [~grazianogrespan],\r\n\r\nso it's the same as in TIMOB-13721, but with {{Ti.UI.SearchView}} instead of {{Ti.UI.TextField}}? Interesting!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-18T08:27:27.000+0000", "updated": "2017-01-18T08:27:27.000+0000" }, { "id": "404772", "author": { "name": "grazianogrespan", "key": "grazianogrespan", "displayName": "grazianogrespan", "active": true, "timeZone": "Europe/Rome" }, "body": "Yes @Hans Knoechel , exactly the same... I did not tried this issue with previous SDKs but with the actual 6.0.1.GA this \"bug\" exists.", "updateAuthor": { "name": "grazianogrespan", "key": "grazianogrespan", "displayName": "grazianogrespan", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-01-18T09:16:31.000+0000", "updated": "2017-01-18T09:16:31.000+0000" }, { "id": "404782", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Yeah, looks very valid! Moved the ticket to TIMOB already. We'll try to get it into the next patch version!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-18T11:02:36.000+0000", "updated": "2017-01-18T11:02:36.000+0000" }, { "id": "406428", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix is present in SDK 6.1.0.v20170206114448.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-06T21:39:34.000+0000", "updated": "2017-02-06T21:39:34.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }