Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-883] Showing an alert dialog from a parent context / activity gets sandwiched when another Activity is currently open

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:54:33.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsAndroid
Labelsalert, android, context, defect
ReporterMarshall Culpepper
AssigneeMarshall Culpepper
Created2011-04-15T02:38:31.000+0000
Updated2011-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

Comments

  1. Marshall Culpepper 2011-04-15

    (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...

  2. Don Thorp 2011-04-15

    (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...

JSON Source