{ "id": "129848", "key": "TIMOB-16947", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2014-05-13T06:34:41.000+0000", "created": "2014-04-30T20:54:53.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "defect", "look1" ], "versions": [ { "id": "15857", "description": "Release 3.2.2", "name": "Release 3.2.2", "archived": false, "released": true, "releaseDate": "2014-03-09" }, { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" } ], "issuelinks": [ { "id": "37608", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "130353", "key": "TIDOC-1669", "fields": { "summary": "Blackberry : Titanium.UI.AlertDialog.hide() destroys the dialog", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "37609", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "130354", "key": "TIMOB-16950", "fields": { "summary": "Blackberry : Titanium.UI.AlertDialog.hide() prevents any use of other dialog", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2017-03-16T20:21:58.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "h4. Problem Description\r\nIf a AlertDialog is hidden by .hide(), the Dialog can not be shown again using .show().\r\nHappens on Blackberry Simulator an on device.\r\n\r\nh4. Steps to reproduce\r\n1. Create a new mobile project with bb support\r\n2. Add this to app.js:\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor:'white',});\r\nwin.open();\r\n\r\nvar a = Ti.UI.createAlertDialog(\r\n\r\n{ message: 'Message a', buttonNames: ['OK'] }\r\n);\r\na.show();\r\na.hide();\r\na.show();\r\n{code}\r\n3. Run this in the emulator.\r\n\r\nh4. Expected results\r\nThe app showing the alert dialog.\r\n\r\nh4. Actual results\r\nThe app doesn't show anything after using the .hide function.\r\n\r\nh4. Extra info\r\nIf you try to show other dialogs, and use hide in the first one, that hide will block all the others dialogs, like in this code:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor:'white',});\r\nwin.open();\r\n\r\nvar other = Ti.UI.createAlertDialog(\r\n\r\n{ message: 'Message other', buttonNames: ['OK'] }\r\n);\r\nvar a = Ti.UI.createAlertDialog(\r\n\r\n{ message: 'Message a', buttonNames: ['OK'] }\r\n);\r\na.show();\r\na.hide();\r\nother.show();\r\na.show();\r\n{code}\r\n\r\neven if other is never \"hide\", it won't show. \r\n\r\nWe ran this code and the one in the steps to reproduce in iOS and Android, and ran without issues. ", "attachment": [], "flagged": false, "summary": "Blackberry : Titanium.UI.AlertDialog.hide() prevents reuse of dialog", "creator": { "name": "thodev", "key": "thodev", "displayName": "Thorsten Meyer", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "thodev", "key": "thodev", "displayName": "Thorsten Meyer", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Blackberry 10.2, Titanium Studio 3.2.3.201404181442", "comment": { "comments": [ { "id": "303451", "author": { "name": "thodev", "key": "thodev", "displayName": "Thorsten Meyer", "active": true, "timeZone": "Europe/Berlin" }, "body": "To make this more worse: if i hide one Titanium.UI.AlertDialog with .hide(), other dialogs after this will not show up too!\r\nExample:\r\n\r\nvar other = Ti.UI.createAlertDialog({\r\n message: 'Message',\r\n buttonNames: ['OK']\r\n});\r\nvar a = Ti.UI.createAlertDialog({\r\n message: 'Message',\r\n buttonNames: []\r\n});\r\na.show();\r\na.hide();\r\nother.show(); \r\n\r\n'other' will not pop up.", "updateAuthor": { "name": "thodev", "key": "thodev", "displayName": "Thorsten Meyer", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-05-05T07:01:05.000+0000", "updated": "2014-05-05T07:01:05.000+0000" }, { "id": "304496", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Note to the reporter: The priority will be set by the Leader of the project. \r\n\r\nThanks for reporting this issue! We will look into it as soon as possible.", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-05-12T23:46:27.000+0000", "updated": "2014-05-12T23:46:27.000+0000" }, { "id": "304518", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "AlertDialogs in BlackBerry are not to be reused. They get internally deleted after hidden. If we were to keep them alive, we would run into memory issues and crashers.\r\n\r\nDo not reuse an AlertDialog.\r\n\r\nThanks for reporting.", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-05-13T01:27:12.000+0000", "updated": "2014-05-13T01:27:12.000+0000" }, { "id": "304530", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Reopening and creating two bugs:\r\n\r\n1. One for docs (this should be documented)\r\n2. This is still failing if at least one of your dialogs are in \"hide\" state (which should not affect the behavior of other dialog, since they are independent). \r\n\r\n", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-05-13T06:25:42.000+0000", "updated": "2014-05-13T06:25:42.000+0000" }, { "id": "304532", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Since this one was marked as won't fix by the platform team, we added two bugs (clone of this one):\r\n\r\n- One for documenting the behavior \r\n- One to fix the effect of the hide function across other dialogs in the window. \r\n\r\n", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-05-13T06:34:41.000+0000", "updated": "2014-05-13T06:34:41.000+0000" }, { "id": "305144", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Fixed in this PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/224", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-05-15T18:43:17.000+0000", "updated": "2014-05-15T18:43:17.000+0000" }, { "id": "412852", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as BlackBerry is no longer supported by us.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T20:21:58.000+0000", "updated": "2017-03-16T20:21:58.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }