[TIMOB-883] Showing an alert dialog from a parent context / activity gets sandwiched when another Activity is currently open
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:54:33.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | Android |
Labels | alert, android, context, defect |
Reporter | Marshall Culpepper |
Assignee | Marshall Culpepper |
Created | 2011-04-15T02:38:31.000+0000 |
Updated | 2011-04-17T01:54:33.000+0000 |
Description
This problem is pretty simple to reproduce.. code:
var tabGroup = Ti.UI.createTabGroup();
var win = Ti.UI.createWindow();
var label = Ti.UI.createLabel({
bottom: 0, top: 0, right: 0, left: 0,
text: "Click Me"
});
label.addEventListener("click", function(e) {
Ti.UI.createAlertDialog({message: "Clicked"}).show();
});
win.add(label);
var tab = Ti.UI.createTab({ title: 'Tab', window: win });
tabGroup.addTab(tab);
tabGroup.open();
The alert dialog is created, but never shown
(from [fa5c9fade770f58e59c198a975c40f49044dd360]) use the current activity when displaying dialogs (fallback to the proxy's activity just in case) [#883 state:resolved] http://github.com/appcelerator/titanium_mobile/commit/fa5c9fade770f58e59c198a975c40f49044dd360"> http://github.com/appcelerator/titanium_mobile/commit/fa5c9fade770f...
(from [c6fcb290876216d07fd8678707f3cde91cfac0df]) [#883 state:resolved] Additional case with the actual alert function http://github.com/appcelerator/titanium_mobile/commit/c6fcb290876216d07fd8678707f3cde91cfac0df"> http://github.com/appcelerator/titanium_mobile/commit/c6fcb29087621...