{ "id": "84139", "key": "TIMOB-6816", "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": "12093", "description": "", "name": "Sprint 2012-01", "archived": true, "released": true, "releaseDate": "2012-01-15" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-23T16:17:24.000+0000", "created": "2011-12-20T18:13:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "parity" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "14584", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "84912", "key": "TIMOB-7201", "fields": { "summary": "Android: UI.window - open and focus events fire more than once", "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 } } } }, { "id": "19929", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "63971", "key": "TIMOB-3339", "fields": { "summary": "On focus window function executed twice in android once in iPhone.", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-14T19:43:48.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": "This code: \r\n{code:lang=javascript|title=app.js}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#000000', \r\n navBarHidden:true\r\n});\r\n\r\nwin1.addEventListener(\"open\", function(e) {\r\n\tTi.API.debug(\"OPENED\");\r\n});\r\n\r\n\r\nwin1.open();\r\n{code}\r\n\r\nChanging {{navBarHidden:true}} to {{modal:true}} also produces the same result\r\n\r\nOPENED will be called twice when the app starts. Additionally, the win1.activity is stopped after the first time the event fires.\r\n\r\nI posted this on Q and A at http://developer.appcelerator.com/question/129668/heavyweight-windows-causing-open-event-to-fire-twice", "attachment": [], "flagged": false, "summary": "Android: UI - heavyweight window open event fired twice", "creator": { "name": "dylanenabled", "key": "dylanenabled", "displayName": "Dylan Sale", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dylanenabled", "key": "dylanenabled", "displayName": "Dylan Sale", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* Titanium Studio, build: 1.0.8.201112191627 19 December 2011, 16:30:21\r\n* Titanium 1.8.0.1 (2011/12/17 19:53 c903964)\r\n* Android APIs 2.2\r\n* V8", "comment": { "comments": [ { "id": "176812", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2011-12-21T05:39:45.000+0000", "updated": "2011-12-21T05:39:45.000+0000" }, { "id": "176837", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Dylan\r\n\r\nThank you for raising this ticket. I have tested the code, and verified that it produces the results as described .\r\n\r\nPlease note the changes that were necessary, as described in [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist], in order for me to be able to escalate it.\r\n\r\nCheers\r\n\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-21T10:05:22.000+0000", "updated": "2011-12-21T10:05:22.000+0000" }, { "id": "176928", "author": { "name": "dylanenabled", "key": "dylanenabled", "displayName": "Dylan Sale", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Paul,\r\nSorry about the formatting, I was in a hurry and missed some of the checklist it seems.\r\n\r\nI notice you changed the component to Android, as a community member it doesn't seem like I have access to that Component.", "updateAuthor": { "name": "dylanenabled", "key": "dylanenabled", "displayName": "Dylan Sale", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-21T14:40:33.000+0000", "updated": "2011-12-21T14:40:33.000+0000" }, { "id": "177092", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "No worries, Dylan - it's all good :)", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-22T19:36:30.000+0000", "updated": "2011-12-22T19:36:30.000+0000" }, { "id": "177264", "author": { "name": "leoncin", "key": "leoncin", "displayName": "leoncin", "active": true, "timeZone": "America/Los_Angeles" }, "body": "vote it. My application which heavily uses 'url' for window creation totally stop working. Hope Titanium can give a fast patch to fix this severe issue. \r\n", "updateAuthor": { "name": "leoncin", "key": "leoncin", "displayName": "leoncin", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-27T07:59:02.000+0000", "updated": "2011-12-27T07:59:02.000+0000" }, { "id": "177271", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Voted. Problem occurs with the released 1.8.0.1 also.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2011-12-27T08:46:14.000+0000", "updated": "2011-12-27T08:46:14.000+0000" }, { "id": "177311", "author": { "name": "tvfoodmaps", "key": "tvfoodmaps", "displayName": "Frank Apap", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Another vote here. This is preventing me from releasing my app on 1.8", "updateAuthor": { "name": "tvfoodmaps", "key": "tvfoodmaps", "displayName": "Frank Apap", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-27T12:58:18.000+0000", "updated": "2011-12-27T12:58:18.000+0000" }, { "id": "177312", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Heck, I can't even TEST my app because all of my open events are firing twice, which causes all kinds of funny side-effects.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2011-12-27T13:04:11.000+0000", "updated": "2011-12-27T13:04:11.000+0000" }, { "id": "177335", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "I've also noticed that the focus event gets fired twice (in my case, when opening a window with the \"url\" property set). This all works fine in 1.8.0.v... from 09/13/2011.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2011-12-27T15:08:37.000+0000", "updated": "2011-12-28T09:06:52.000+0000" }, { "id": "178002", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Below is a sample code to test both \"open\" and \"focus\" events. Run it for both heavyweight window and lightweight window. Check the log for result.\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#000000', \r\n navBarHidden:true\r\n});\r\n\r\nwin1.addEventListener(\"open\", function(e) {\r\n\tTi.API.debug(\"*****************OPENED\");\r\n});\r\n\r\nwin1.addEventListener(\"focus\", function(e) {\r\n\tTi.API.debug(\"****************FOCUSED\");\r\n});\r\n\r\nwin1.open();\r\n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-04T13:18:33.000+0000", "updated": "2012-01-05T11:29:34.000+0000" }, { "id": "179102", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix for both heavyweight and lightweight windows on:\r\n\r\nSDK build: 1.9.0.v20120111233134\r\nRuntime: V8, Rhino\r\nTitanium Studio, build: 1.0.8.201201111843\r\nDevice: Droid 3 (2.3.4)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-12T12:45:47.000+0000", "updated": "2012-01-12T12:45:47.000+0000" }, { "id": "179355", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-01-16T07:55:27.000+0000", "updated": "2012-01-16T07:55:27.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }