[TIMOB-6107] Android: AlertDialog: Rhino/v8, Only see the buttons not the dialog after the first invoke, but screen dims indicating one is up
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-11-09T12:40:23.000+0000 |
| Affected Version/s | Release 1.8.0.1 |
| Fix Version/s | Sprint 2011-45, Release 1.8.0 |
| Components | Android |
| Labels | branch-v8 |
| Reporter | Natalie Huynh |
| Assignee | Josh Roesslein |
| Created | 2011-11-08T12:34:18.000+0000 |
| Updated | 2014-06-19T12:44:13.000+0000 |
Description
Steps To Reproduce:
1. Launch Application
2. Base UI > Views > Alert Dialog AND Base UI > Views > Options Dialog
3. Click Basic Alert twice
Actual Result:
First time the alert comes up and then second time only the button displays
Expected Result:
Should display the alert every time
Test case:
var win = Ti.UI.createWindow({backgroundColor:'red'}); var a = Ti.UI.createAlertDialog({title:"Hello", message:"world!"}); var b = Ti.UI.createButton({title:"click", width:100, height:50}); win.add(b); b.on("click", function() { Ti.API.debug("Click!"); a.show(); }); win.open();[Pull request #654](https://github.com/appcelerator/titanium_mobile/pull/654)
Tested with 1.8.0.1.v20111207090257 Xoom (3.2.1) - v8 Samsung Tab 10.1 (3.1) - rhino